List:Commits« Previous MessageNext Message »
From:tomas Date:May 14 2007 12:01pm
Subject:bk commit into 5.1 tree (tomas:1.2535)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-05-14 14:01:08+02:00, tomas@stripped +1 -0
  WL#3733 - minor code changes; indentation etc

  sql/ha_ndbcluster.cc@stripped, 2007-05-14 14:01:05+02:00, tomas@stripped +13 -15
    WL#3733 - minor code changes; indentation etc

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tomas
# Host:	whalegate.ndb.mysql.com
# Root:	/home/tomas/mysql-5.1-wl2223

--- 1.467/sql/ha_ndbcluster.cc	2007-05-14 01:47:35 +02:00
+++ 1.468/sql/ha_ndbcluster.cc	2007-05-14 14:01:05 +02:00
@@ -9677,16 +9677,16 @@
     }
     else
     {
-    /*
-      Convert to primary/unique key operation.
+      /*
+        Convert to primary/unique key operation.
 
-      If there is not enough buffer for reading the row: stop here, send
-      what we have so far, and continue when done with that.
-    */
+        If there is not enough buffer for reading the row: stop here, send
+        what we have so far, and continue when done with that.
+      */
       if (row_buf + reclength > end_of_buffer)
         break;
 
-      r->range_flag |= UNIQUE_RANGE;
+      r->range_flag|= UNIQUE_RANGE;
 
       if (!(op= pk_unique_index_read_key(active_index,
                                          r->start_key.key,
@@ -9700,7 +9700,6 @@
 
       row_buf+= reclength;
     }
-
   }
   DBUG_ASSERT(i > 0 || i == range_count);       // Require progress
   m_multi_range_defined_end= ranges + i;
@@ -9769,8 +9768,6 @@
 int
 ha_ndbcluster::read_multi_range_next(KEY_MULTI_RANGE ** multi_range_found_p)
 {
-  int res;
-
   DBUG_ENTER("ha_ndbcluster::read_multi_range_next");
   if (m_disable_multi_read)
   {
@@ -9784,7 +9781,7 @@
       /* Nothing in this range, move to next one. */
       multi_range_curr++;
     }
-    else if(multi_range_curr->range_flag & UNIQUE_RANGE)
+    else if (multi_range_curr->range_flag & UNIQUE_RANGE)
     {
       /*
         Move to next range; we can have at most one record from a unique range.
@@ -9819,9 +9816,11 @@
     else
     {
       /* An index scan range. */
-      if ((res= read_multi_range_fetch_next()) != 0)
-        DBUG_RETURN(res);
-
+      {
+        int res;
+        if ((res= read_multi_range_fetch_next()) != 0)
+          DBUG_RETURN(res);
+      }
       if (!m_next_row)
       {
         /*
@@ -9910,7 +9909,6 @@
 int
 ha_ndbcluster::read_multi_range_fetch_next()
 {
-  int res;
   NdbIndexScanOperation *cursor= (NdbIndexScanOperation *)m_active_cursor;
 
   if (!cursor)
@@ -9918,7 +9916,7 @@
 
   if (!m_next_row)
   {
-    res= fetch_next(cursor);
+    int res= fetch_next(cursor);
     if (res == 0)
     {
       m_current_range_no= cursor->get_range_no();
Thread
bk commit into 5.1 tree (tomas:1.2535)tomas14 May