Skip to content

Commit 92d2afe

Browse files
committed
FIX: in async mode, log records may remain in flush size.
1 parent 6c3fb54 commit 92d2afe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engines/default/cmdlogbuf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ void cmdlog_buf_final(void)
473473
return;
474474
}
475475

476+
/* In async mode, log records may remain in CMDLOG_FLUSH_AUTO_SIZE. */
477+
(void)do_log_buff_flush(true);
478+
476479
/* log buffer final */
477480
log_BUFFER *logbuff = &log_buff_gl.log_buffer;
478481

0 commit comments

Comments
 (0)