summaryrefslogtreecommitdiff
path: root/memcached.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2021-08-02 20:24:56 -0700
committerdormando <dormando@rydia.net>2021-08-09 17:09:08 -0700
commit5d53b04240938654ecd38f2e609cd821e3a3723f (patch)
tree80bb11792f694d948fe0322e073725d27cb747d8 /memcached.c
parent3fc8775bf081f0cf84fe16058f834b951953c269 (diff)
downloadmemcached-5d53b04240938654ecd38f2e609cd821e3a3723f.tar.gz
core: io_flow requires triggering on stack
instead of queue counter. only use the queue counter for figuring out when to return the connection
Diffstat (limited to 'memcached.c')
-rw-r--r--memcached.c3
1 files changed, 1 insertions, 2 deletions
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++;