List:Internals« Previous MessageNext Message »
From:jonas.oreland Date:December 13 2004 8:57am
Subject:bk commit into 5.0 tree (joreland:1.1736)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jonas. When jonas 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://www.mysql.com/doc/I/n/Installing_source_tree.html

ChangeSet
  1.1736 04/12/13 08:56:53 joreland@stripped +1 -0
  ndb - Fix memory leak in HugoLoad

  ndb/test/src/HugoTransactions.cpp
    1.13 04/12/13 08:56:49 joreland@stripped +4 -1
    Fix memory leak in HugoLoad

# 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:	joreland
# Host:	eel.hemma.oreland.se
# Root:	/home/jonas/src/mysql-5.0-ndb

--- 1.12/ndb/test/src/HugoTransactions.cpp	Thu Nov 18 20:54:05 2004
+++ 1.13/ndb/test/src/HugoTransactions.cpp	Mon Dec 13 08:56:49 2004
@@ -865,7 +865,7 @@
   
   g_info << "|- Inserting records..." << endl;
   for (int c=0 ; c<records ; ){
-    bool closeTrans;
+    bool closeTrans = true;
     if (retryAttempt >= retryMax){
       g_info << "Record " << c << " could not be inserted, has retried
"
 	     << retryAttempt << " times " << endl;
@@ -983,6 +983,9 @@
     c = c+batch; 
     retryAttempt = 0;
   }
+
+  if(pTrans)
+    pNdb->closeTransaction(pTrans);
   return NDBT_OK;
 }
 
Thread
bk commit into 5.0 tree (joreland:1.1736)jonas.oreland13 Dec