Commit bf4b2220 authored by unknown's avatar unknown

Page number calculation fixed.

parent 9a82084b
......@@ -2099,7 +2099,7 @@ static my_bool translog_buffer_flush(struct st_translog_buffer *buffer)
}
file.file= buffer->file;
for (i= 0, pg= buffer->offset / TRANSLOG_PAGE_SIZE;
for (i= 0, pg= LSN_OFFSET(buffer->offset) / TRANSLOG_PAGE_SIZE;
i < buffer->size;
i+= TRANSLOG_PAGE_SIZE, pg++)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment