Skip to content

Commit

Permalink
core: io_flow requires triggering on stack
Browse files Browse the repository at this point in the history
instead of queue counter. only use the queue counter for figuring out
when to return the connection
  • Loading branch information
dormando committed Aug 10, 2021
1 parent 3fc8775 commit 5d53b04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 5d53b04

Please sign in to comment.