Skip to content
/ server Public
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion storage/maria/ma_loghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -7775,7 +7775,7 @@ void translog_flush_buffers(TRANSLOG_ADDRESS *lsn,
{
dirty_buffer_mask_t dirty_buffer_mask;
uint i;
uint8 UNINIT_VAR(last_buffer_no), start_buffer_no;
uint8 last_buffer_no, start_buffer_no;
DBUG_ENTER("translog_flush_buffers");

/*
Expand Down Expand Up @@ -7840,6 +7840,10 @@ void translog_flush_buffers(TRANSLOG_ADDRESS *lsn,
TRANSLOG_BUFFERS_NO);
translog_unlock();
}
else
{
last_buffer_no= 0;
}
/* flush buffers */
*sent_to_disk= translog_get_sent_to_disk();
if (cmp_translog_addr(*lsn, *sent_to_disk) > 0)
Expand Down