List:Commits« Previous MessageNext Message »
From:Martin Skold Date:August 29 2007 8:34am
Subject:bk commit into 5.1 tree (mskold:1.2616)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of marty. When marty 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-08-29 10:33:49+02:00, mskold@stripped +1 -0
  Merge mskold@stripped:/home/bk/mysql-5.1-telco-6.2
  into  mysql.com:/windows/Linux_space/MySQL/mysql-5.1-telco-6.2
  MERGE: 1.2612.1.1

  sql/ha_ndbcluster.cc@stripped, 2007-08-29 10:33:40+02:00, mskold@stripped +0 -0
    Auto merged
    MERGE: 1.489.1.1

# 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:	mskold
# Host:	linux.site
# Root:	/windows/Linux_space/MySQL/mysql-5.1-telco-6.2/RESYNC

--- 1.490/sql/ha_ndbcluster.cc	2007-08-29 10:34:06 +02:00
+++ 1.491/sql/ha_ndbcluster.cc	2007-08-29 10:34:06 +02:00
@@ -8995,9 +8995,9 @@ void ndbcluster_real_free_share(NDB_SHAR
 
   hash_delete(&ndbcluster_open_tables, (byte*) *share);
   thr_lock_delete(&(*share)->lock);
-  pthread_mutex_destroy(&(*share)->mutex);
 
 #ifdef HAVE_NDB_BINLOG
+  (void) pthread_mutex_lock(&(*share)->mutex);
   if ((*share)->table)
   {
     // (*share)->table->mem_root is freed by closefrm
@@ -9021,7 +9021,9 @@ void ndbcluster_real_free_share(NDB_SHAR
     (*share)->table= 0;
 #endif
   }
+  (void) pthread_mutex_unlock(&(*share)->mutex);
 #endif
+  pthread_mutex_destroy(&(*share)->mutex);
   free_root(&(*share)->mem_root, MYF(0));
   my_free((gptr) *share, MYF(0));
   *share= 0;
Thread
bk commit into 5.1 tree (mskold:1.2616)Martin Skold29 Aug