From 5d53b04240938654ecd38f2e609cd821e3a3723f Mon Sep 17 00:00:00 2001 From: dormando Date: Mon, 2 Aug 2021 20:24:56 -0700 Subject: core: io_flow requires triggering on stack instead of queue counter. only use the queue counter for figuring out when to return the connection --- memcached.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'memcached.c') diff --git a/memcached.c b/memcached.c index a5cd0a6..c344359 100644 --- a/memcached.c +++ b/memcached.c @@ -3252,8 +3252,7 @@ static void drive_machine(conn *c) { assert(c->io_queues_submitted == 0); for (io_queue_t *q = c->io_queues; q->type != IO_QUEUE_NONE; q++) { - if (q->count != 0) { - assert(q->stack_ctx != NULL); + if (q->stack_ctx != NULL) { io_queue_cb_t *qcb = thread_io_queue_get(c->thread, q->type); qcb->submit_cb(q); c->io_queues_submitted++; -- cgit v1.2.1