List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:November 7 2011 11:08pm
Subject:bzr push into mysql-5.5-cluster branch (magnus.blaudd:3645 to 3646)
View as plain text  
 3646 Magnus Blåudd	2011-11-07
      ndb schema dist
       - add missing lock of share->mutex when fiddeling with share->op

    modified:
      sql/ha_ndbcluster_binlog.cc
 3645 Magnus Blåudd	2011-11-07
      ndbcluster
       - move 'cmpfrm' to ndb_ndbapi_util.h

    modified:
      sql/ha_ndbcluster.cc
      sql/ha_ndbcluster_binlog.h
      sql/ndb_ndbapi_util.cc
      sql/ndb_ndbapi_util.h
=== modified file 'sql/ha_ndbcluster_binlog.cc'
--- a/sql/ha_ndbcluster_binlog.cc	2011-11-07 22:38:30 +0000
+++ b/sql/ha_ndbcluster_binlog.cc	2011-11-07 22:53:15 +0000
@@ -2717,6 +2717,7 @@ class Ndb_schema_event_handler {
     NDB_SHARE *share= get_share(schema);
     if (share)
     {
+      pthread_mutex_lock(&share->mutex);
       if (share->op)
       {
         Ndb_event_data *event_data=
@@ -2731,6 +2732,8 @@ class Ndb_schema_event_handler {
         share->op= 0;
         free_share(&share);
       }
+      pthread_mutex_unlock(&share->mutex);
+
       free_share(&share);
     }
 

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.5-cluster branch (magnus.blaudd:3645 to 3646) Magnus Blåudd11 Nov