List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:February 16 2011 9:17am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4201)
View as plain text  
#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped

 4201 Magnus Blåudd	2011-02-16
      ndb
        - move comment to correct place, inside the "if"
       - remove trailing whitespace

    modified:
      sql/ha_ndbcluster.cc
=== modified file 'sql/ha_ndbcluster.cc'
--- a/sql/ha_ndbcluster.cc	2011-02-16 08:33:08 +0000
+++ b/sql/ha_ndbcluster.cc	2011-02-16 09:17:50 +0000
@@ -9597,30 +9597,31 @@ int ha_ndbcluster::open(const char *name
   DBUG_ENTER("ha_ndbcluster::open");
   DBUG_PRINT("enter", ("name: %s  mode: %d  test_if_locked: %d",
                        name, mode, test_if_locked));
-  
-  /*
-    Setup ref_length to make room for the whole 
-    primary key to be written in the ref variable
-  */
-  
+
   if (bitmap_init(&m_save_read_set, NULL, table_share->fields, FALSE))
   {
     DBUG_RETURN(1);
   }
-  if (table_share->primary_key != MAX_KEY) 
+
+  if (table_share->primary_key != MAX_KEY)
   {
+    /*
+      Setup ref_length to make room for the whole
+      primary key to be written in the ref variable
+    */
     key= table->key_info+table_share->primary_key;
     ref_length= key->key_length;
   }
-  else // (table_share->primary_key == MAX_KEY) 
+  else
   {
     if (m_user_defined_partitioning)
     {
+      /* Add space for partid in ref */
       ref_length+= sizeof(m_part_id);
     }
   }
-
   DBUG_PRINT("info", ("ref_length: %d", ref_length));
+
   {
     char* bitmap_array;
     uint extra_hidden_keys= table_share->primary_key != MAX_KEY ? 0 : 1;

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110216091750-18f5zb6h6605gpa2.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4201) Magnus Blåudd16 Feb