]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fixup! xxx processed counter
authorWitold Kręcicki <wpk@isc.org>
Fri, 7 Feb 2020 12:02:20 +0000 (13:02 +0100)
committerWitold Kręcicki <wpk@isc.org>
Fri, 7 Feb 2020 12:02:20 +0000 (13:02 +0100)
lib/isc/task.c

index 66f497869f2dd587ab86ddbcc0f6512ca972e00a..1639b327620f149327ea00a8abf6eef6535ad4cc 100644 (file)
@@ -1125,7 +1125,6 @@ dispatch(isc__taskmgr_t *manager, unsigned int threadid) {
                         * have a task to do.  We must reacquire the queue
                         * lock before exiting the 'if (task != NULL)' block.
                         */
-                       manager->queues[threadid].eprocessed++;
                        UNLOCK(&manager->queues[threadid].lock);
                        RUNTIME_CHECK(
                              atomic_fetch_sub_explicit(&manager->tasks_ready,
@@ -1162,6 +1161,7 @@ dispatch(isc__taskmgr_t *manager, unsigned int threadid) {
                                         */
                                        XTRACE("execute action");
                                        XTRACE(task->name);
+                                       manager->queues[threadid].eprocessed++;
                                        if (event->ev_action != NULL) {
                                                UNLOCK(&task->lock);
                                                (event->ev_action)(