Commit 6a6674a6 authored by unknown's avatar unknown

Page number calculation fixed.

parent 11d72916
...@@ -2099,7 +2099,7 @@ static my_bool translog_buffer_flush(struct st_translog_buffer *buffer) ...@@ -2099,7 +2099,7 @@ static my_bool translog_buffer_flush(struct st_translog_buffer *buffer)
} }
file.file= buffer->file; 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 < buffer->size;
i+= TRANSLOG_PAGE_SIZE, pg++) 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