Skip to content

Commit

Permalink
add premature_notify_io_complete code when in notify_io_complete
Browse files Browse the repository at this point in the history
  • Loading branch information
MinWooJin committed May 13, 2020
1 parent d12ff3d commit 06de764
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ void notify_io_complete(const void *cookie, ENGINE_ERROR_CODE status)
}

if (conn->io_block_cnt == 0) {
if (!conn->io_blocked){
conn->premature_notify_io_complete = true;
UNLOCK_THREAD(thr);
mc_logger->log(EXTENSION_LOG_DEBUG, NULL, "Premature notify_io_complete\n");
return;
}
conn->io_blocked = false;

/* update to latest status when aiostat was ENGINE_SUCCESS */
Expand Down

0 comments on commit 06de764

Please sign in to comment.