Commit dcd4b6f5 authored by unknown's avatar unknown

Comments fixed and added.

parent 212313de
...@@ -104,7 +104,7 @@ struct st_buffer_cursor ...@@ -104,7 +104,7 @@ struct st_buffer_cursor
struct st_translog_buffer *buffer; struct st_translog_buffer *buffer;
/* current page fill */ /* current page fill */
uint16 current_page_fill; uint16 current_page_fill;
/* how many times we finish this page to write it */ /* how many times we finish this page to write it (for sector protection) */
uint16 write_counter; uint16 write_counter;
/* previous write offset */ /* previous write offset */
uint16 previous_offset; uint16 previous_offset;
...@@ -6142,6 +6142,7 @@ static void translog_force_current_buffer_to_finish() ...@@ -6142,6 +6142,7 @@ static void translog_force_current_buffer_to_finish()
write_counter= log_descriptor.bc.write_counter; write_counter= log_descriptor.bc.write_counter;
previous_offset= log_descriptor.bc.previous_offset; previous_offset= log_descriptor.bc.previous_offset;
translog_start_buffer(new_buffer, &log_descriptor.bc, new_buffer_no); translog_start_buffer(new_buffer, &log_descriptor.bc, new_buffer_no);
/* Fix buffer offset (which was incorrectly set to horizon) */
log_descriptor.bc.buffer->offset= new_buff_beginning; log_descriptor.bc.buffer->offset= new_buff_beginning;
log_descriptor.bc.write_counter= write_counter; log_descriptor.bc.write_counter= write_counter;
log_descriptor.bc.previous_offset= previous_offset; log_descriptor.bc.previous_offset= previous_offset;
......
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