List:Maria Storage Engine« Previous MessageNext Message »
From:sanja Date:June 12 2008 6:05pm
Subject:bzr commit into MySQL/Maria:mysql-maria branch (sanja:2652)
View as plain text  
#At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-maria/

 2652 sanja@stripped	2008-06-12
      More safe flush_horizon variable initialization.
modified:
  storage/maria/ma_loghandler.c

per-file messages:
  storage/maria/ma_loghandler.c
    More safe flush_horizon variable initialization.
=== modified file 'storage/maria/ma_loghandler.c'
--- a/storage/maria/ma_loghandler.c	2008-06-10 16:14:29 +0000
+++ b/storage/maria/ma_loghandler.c	2008-06-12 18:05:31 +0000
@@ -7500,8 +7500,6 @@ my_bool translog_flush(TRANSLOG_ADDRESS 
   DBUG_ASSERT(translog_status == TRANSLOG_OK ||
               translog_status == TRANSLOG_READONLY);
   LINT_INIT(sent_to_disk);
-  LINT_INIT(flush_horizon);
-
 
   pthread_mutex_lock(&log_descriptor.log_flush_lock);
   DBUG_PRINT("info", ("Everything is flushed up to (%lu,0x%lx)",
@@ -7526,6 +7524,7 @@ my_bool translog_flush(TRANSLOG_ADDRESS 
     log_descriptor.next_pass_max_lsn= LSN_IMPOSSIBLE;
   }
   log_descriptor.flush_in_progress= 1;
+  flush_horizon= log_descriptor.previous_flush_horizon;
   DBUG_PRINT("info", ("flush_in_progress is set"));
   pthread_mutex_unlock(&log_descriptor.log_flush_lock);
 

Thread
bzr commit into MySQL/Maria:mysql-maria branch (sanja:2652) sanja12 Jun