#At lp:maria based on revid:[email protected]

 2788 Michael Widenius  2010-01-04
      Fixed bug in tc.log recovery code that caused crash_commit_before to 
sometimes crash.
      modified:
        sql/log.cc

=== modified file 'sql/log.cc'
--- a/sql/log.cc        2009-12-03 11:19:05 +0000
+++ b/sql/log.cc        2010-01-04 18:25:29 +0000
@@ -5154,8 +5154,8 @@ int TC_LOG_MMAP::open(const char *opt_na
     pthread_mutex_init(&pg->lock, MY_MUTEX_INIT_FAST);
     pthread_cond_init (&pg->cond, 0);
     pg->start=(my_xid *)(data + i*tc_log_page_size);
-    pg->end=(my_xid *)(pg->start + tc_log_page_size);
     pg->size=pg->free=tc_log_page_size/sizeof(my_xid);
+    pg->end=pg->start + pg->size;
   }
   pages[0].size=pages[0].free=
                 (tc_log_page_size-TC_LOG_HEADER_SIZE)/sizeof(my_xid);


_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to