List:Internals« Previous MessageNext Message »
From:jonas.oreland Date:July 21 2005 11:13am
Subject:bk commit into 4.1 tree (joreland:1.2331) BUG#11942
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 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://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2331 05/07/21 11:13:07 joreland@stripped +1 -0
  bug#11942 - ndb - backup during DDL
    fix bug introduced in alter table

  ndb/src/kernel/blocks/dbdict/Dbdict.cpp
    1.36 05/07/21 11:13:04 joreland@stripped +6 -1
    bug#11942 - ndb - backup during DDL
      fix bug introduced in alter table

# 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.(none)
# Root:	/home/jonas/src/mysql-4.1

--- 1.35/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2005-07-20 12:39:42 +02:00
+++ 1.36/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2005-07-21 11:13:04 +02:00
@@ -2918,6 +2918,7 @@
   alterTabPtr.p->m_coordinatorRef = reference();
   alterTabPtr.p->m_fragmentsPtrI = RNIL;
   alterTabPtr.p->m_dihAddFragPtr = RNIL;
+  alterTabPtr.p->m_alterTableId = tablePtr.p->tableId;
 
   // Send prepare request to all alive nodes
   SimplePropertiesSectionWriter w(getSectionSegmentPool());
@@ -2951,7 +2952,7 @@
   ndbrequire(c_opCreateTable.find(alterTabPtr, callbackData));
 
   TableRecordPtr tablePtr;
-  c_tableRecordPool.getPtr(tablePtr, alterTabPtr.p->m_tablePtrI, true);
+  c_tableRecordPool.getPtr(tablePtr, alterTabPtr.p->m_alterTableId, true);
 
   Mutex mutex(signal, c_mutexMgr, alterTabPtr.p->m_startLcpMutex);
   mutex.unlock(); // ignore response
@@ -2969,6 +2970,10 @@
     req->senderData = alterTabPtr.p->m_senderData;
     req->senderRef = alterTabPtr.p->m_senderRef;
     alterTableRef(signal, req, AlterTableRef::BackupInProgress);
+
+    c_tableRecordPool.getPtr(tablePtr, alterTabPtr.p->m_tablePtrI);  
+    releaseTableObject(tablePtr.i, false);
+
     c_opCreateTable.release(alterTabPtr);
     c_blockState = BS_IDLE;
     return;
Thread
bk commit into 4.1 tree (joreland:1.2331) BUG#11942jonas.oreland21 Jul