[Commits] Rev 3202: Fix compile error in file:///H:/bzr/5.5/

Vladislav Vaintroub wlad at montyprogram.com
Tue Jan 3 01:18:30 EET 2012


At file:///H:/bzr/5.5/

------------------------------------------------------------
revno: 3202
revision-id: wlad at montyprogram.com-20120102231736-z4tkqgcly0j1hjo2
parent: psergey at askmonty.org-20120102205616-v9u1s11mxaa5bc3d
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.5
timestamp: Tue 2012-01-03 00:17:36 +0100
message:
  Fix compile error
-------------- next part --------------
=== modified file 'storage/maria/ma_write.c'
--- a/storage/maria/ma_write.c	2012-01-02 20:56:16 +0000
+++ b/storage/maria/ma_write.c	2012-01-02 23:17:36 +0000
@@ -472,10 +472,11 @@
   int error;
   my_off_t new_root= *root;
   uchar key_buff[MARIA_MAX_KEY_BUFF];
-  MARIA_KEY UNINIT_VAR(org_key); /* Set/used when now_transactional=TRUE */
+  MARIA_KEY org_key; /* Set/used when now_transactional=TRUE */
+  my_bool transactional= share->now_transactional;
   DBUG_ENTER("_ma_ck_write_btree_with_log");
   
-  if (share->now_transactional)
+  if (transactional)
   {
     /* Save original value as the key may change */
     org_key= *key;
@@ -483,7 +484,7 @@
   }
 
   error= _ma_ck_real_write_btree(info, key, &new_root, comp_flag);
-  if (!error && share->now_transactional)
+  if (!error && transactional)
   {
     /* Log the original value */
     *key= org_key;



More information about the commits mailing list