Commit 931af319 authored by unknown's avatar unknown
Browse files

ndb - bug#21756

  Fix for alter table when node is down...that could cause pain and misery


ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  Make sure to check table version before retriving from disk
parent d2d605e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2313,7 +2313,8 @@ void Dbdict::checkSchemaStatus(Signal* signal)
	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;