From: Date: September 15 2006 11:34am Subject: bk commit into 4.1 tree (jonas:1.2545) BUG#21756 List-Archive: http://lists.mysql.com/commits/12001 X-Bug: 21756 Message-Id: <20060915093408.DD039540E95@perch.ndb.mysql.com> 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@stripped, 2006-09-15 11:34:06+02:00, jonas@stripped +1 -0 ndb - bug#21756 Fix for alter table when node is down...that could cause pain and misery ndb/src/kernel/blocks/dbdict/Dbdict.cpp@stripped, 2006-09-15 11:34:05+02:00, jonas@stripped +2 -1 Make sure to check table version before retriving from disk # 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: jonas # Host: perch.ndb.mysql.com # Root: /home/jonas/src/41-work --- 1.45/ndb/src/kernel/blocks/dbdict/Dbdict.cpp 2006-09-15 11:34:08 +02:00 +++ 1.46/ndb/src/kernel/blocks/dbdict/Dbdict.cpp 2006-09-15 11:34:08 +02:00 @@ -2313,7 +2313,8 @@ tablePtr.p->tableType = (DictTabInfo::TableType)oldEntry->m_tableType; // On NR get index from master because index state is not on file - const bool file = c_systemRestart || tablePtr.p->isTable(); + const bool file = (* newEntry == * oldEntry) && + (c_systemRestart || tablePtr.p->isTable()); restartCreateTab(signal, tableId, oldEntry, file); return;