Commit 3ab332c4 authored by unknown's avatar unknown

BUG#20065 Erroneous error message at Node Restart if MaxNoOfOrderedIndexes changed too low

nicer error message to user, along with error code to help track down the problem.


storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  Report error when creating table (restartCreateTab_dihComplete) 
  to user in a nicer way.
parent 3fc3c084
...@@ -3249,8 +3249,14 @@ Dbdict::restartCreateTab_dihComplete(Signal* signal, ...@@ -3249,8 +3249,14 @@ Dbdict::restartCreateTab_dihComplete(Signal* signal,
CreateTableRecordPtr createTabPtr; CreateTableRecordPtr createTabPtr;
ndbrequire(c_opCreateTable.find(createTabPtr, callbackData)); ndbrequire(c_opCreateTable.find(createTabPtr, callbackData));
//@todo check error if(createTabPtr.p->m_errorCode)
ndbrequire(createTabPtr.p->m_errorCode == 0); {
char buf[100];
BaseString::snprintf(buf, sizeof(buf), "Failed to create table during"
" restart, Error: %u",
createTabPtr.p->m_errorCode);
progError(__LINE__, NDBD_EXIT_RESOURCE_ALLOC_ERROR, buf);
}
Callback callback; Callback callback;
callback.m_callbackData = callbackData; callback.m_callbackData = callbackData;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment