Commit 4b302966 authored by unknown's avatar unknown

Fixed bug in log "in progress" marking.


storage/maria/ma_loghandler.c:
  Comments fixed.
  Fixed loop starting value.
parent 90b63bf7
...@@ -159,7 +159,7 @@ struct st_translog_descriptor ...@@ -159,7 +159,7 @@ struct st_translog_descriptor
LSN flushed; LSN flushed;
/* Last LSN sent to the disk (but maybe not written yet) */ /* Last LSN sent to the disk (but maybe not written yet) */
LSN sent_to_file; LSN sent_to_file;
/* All what is after this addess is not sent to disk yet */ /* All what is after this address is not sent to disk yet */
TRANSLOG_ADDRESS in_buffers_only; TRANSLOG_ADDRESS in_buffers_only;
pthread_mutex_t sent_to_file_lock; pthread_mutex_t sent_to_file_lock;
...@@ -671,7 +671,7 @@ static my_bool translog_max_lsn_to_header(File file, LSN lsn) ...@@ -671,7 +671,7 @@ static my_bool translog_max_lsn_to_header(File file, LSN lsn)
typedef struct st_loghandler_file_info typedef struct st_loghandler_file_info
{ {
/* /*
LSN_IPOSSIBLE for current file and max LSN which parts stored in the LSN_IMPOSSIBLE for current file and max LSN which parts stored in the
file for all other (finished) files. file for all other (finished) files.
*/ */
LSN max_lsn; LSN max_lsn;
...@@ -813,7 +813,7 @@ static void translog_mark_file_unfinished(ulong file) ...@@ -813,7 +813,7 @@ static void translog_mark_file_unfinished(ulong file)
goto end; goto end;
} }
for (place= log_descriptor.unfinished_files.elements; for (place= log_descriptor.unfinished_files.elements - 1;
place >= 0; place >= 0;
place--) place--)
{ {
......
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