List:Commits« Previous MessageNext Message »
From:tomas Date:May 16 2006 11:47am
Subject:bk commit into 4.1 tree (tomas:1.2476) BUG#13987
View as plain text  
Below is the list of changes that have just been committed into a local
4.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
  1.2476 06/05/16 11:47:33 tomas@stripped +2 -0
  Bug #18591 Repeated "show" and "all status" calls to ndb_mgm causes mgmd to crash
  - not having lock can cause "block number list" to become corrupt => crash
  - also may result in 2 threads receiving same block no => possble cause of
  Bug #13987 Cluster: Loss of data nodes can cause high CPU usage from ndb_mgmd

  ndb/src/ndbapi/SignalSender.cpp
    1.5 06/05/16 11:47:26 tomas@stripped +2 -0
    Bug #18591 Repeated "show" and "all status" calls to ndb_mgm causes mgmd to crash
    - not having lock can cause "block number list" to become corrupt => crash
    - also may result in 2 threads receiving same block no => possble cause of
    Bug #13987 Cluster: Loss of data nodes can cause high CPU usage from ndb_mgmd

  ndb/src/mgmsrv/MgmtSrvr.cpp
    1.74 06/05/16 11:47:26 tomas@stripped +1 -0
    ndb: added missing lock of mutex

# 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:	poseidon.ndb.mysql.com
# Root:	/home/tomas/mysql-4.1

--- 1.73/ndb/src/mgmsrv/MgmtSrvr.cpp	2006-01-13 01:43:47 +01:00
+++ 1.74/ndb/src/mgmsrv/MgmtSrvr.cpp	2006-05-16 11:47:26 +02:00
@@ -2107,6 +2107,7 @@
 MgmtSrvr::abortBackup(Uint32 backupId)
 {
   SignalSender ss(theFacade);
+  ss.lock(); // lock will be released on exit
 
   bool next;
   NodeId nodeId = 0;

--- 1.4/ndb/src/ndbapi/SignalSender.cpp	2005-09-13 10:03:00 +02:00
+++ 1.5/ndb/src/ndbapi/SignalSender.cpp	2006-05-16 11:47:26 +02:00
@@ -75,7 +75,9 @@
 {
   m_cond = NdbCondition_Create();
   theFacade = facade;
+  lock();
   m_blockNo = theFacade->open(this, execSignal, execNodeStatus);
+  unlock();
   assert(m_blockNo > 0);
 }
 
Thread
bk commit into 4.1 tree (tomas:1.2476) BUG#13987tomas16 May