List:Internals« Previous MessageNext Message »
From:Stewart Smith Date:April 7 2005 10:29am
Subject:bk commit into 5.1 tree (stewart:1.1849)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of stewart. When stewart 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
  1.1849 05/04/07 18:29:38 stewart@stripped +1 -0
  Fix for possible infinite loop.

  ndb/src/ndbapi/NdbEventOperationImpl.cpp
    1.33 05/04/07 18:29:30 stewart@stripped +6 -6
    Tomas' fix for intermittant infinite loop

# 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:	stewart
# Host:	kennedy.(none)
# Root:	/home/stewart/Documents/MySQL/5.1/wl2325

--- 1.32/ndb/src/ndbapi/NdbEventOperationImpl.cpp	2005-04-07 10:31:23 +10:00
+++ 1.33/ndb/src/ndbapi/NdbEventOperationImpl.cpp	2005-04-07 18:29:30 +10:00
@@ -626,21 +626,21 @@
 NdbEventBuffer::next(int *error, Uint64 maxGCI)
 {
   DBUG_ENTER("NdbEventBuffer::next");
-  EventBufData *data;
-  while((data = m_available_data))
+  if (m_available_data)
   {
-    NdbEventOperationImpl *ev_op= data->m_event_op;
+    NdbEventOperationImpl *ev_op= m_available_data->m_event_op;
     int r= ev_op->next(maxGCI);
     if (r > 0)
     {
       DBUG_RETURN(ev_op->m_facade);
     }
-    else if (r < 0)
+    else if (r == 0)
     {
-      if (error)
-	*error= -1;
       DBUG_RETURN(0);
     }
+     if (error)
+    *error= -1;
+    DBUG_RETURN(0);
   }
   DBUG_RETURN(0);
 }
Thread
bk commit into 5.1 tree (stewart:1.1849)Stewart Smith7 Apr