]> git.sur5r.net Git - openldap/commitdiff
Freshly inserted tasks should be at head of queue and run immediately
authorHoward Chu <hyc@openldap.org>
Sat, 23 Apr 2005 16:56:37 +0000 (16:56 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 23 Apr 2005 16:56:37 +0000 (16:56 +0000)
libraries/libldap_r/rq.c

index 99daef6ca1baefe6f59ffc54d7b6f8870650e2cb..7b775f61f1898f646f4b4ffbbd30716a7bf57652 100644 (file)
@@ -55,7 +55,7 @@ ldap_pvt_runqueue_insert(
                entry->arg = arg;
                entry->tname = tname;
                entry->tspec = tspec;
-               LDAP_STAILQ_INSERT_TAIL( &rq->task_list, entry, tnext );
+               LDAP_STAILQ_INSERT_HEAD( &rq->task_list, entry, tnext );
        }
        return entry;
 }