Commit c9147c5e authored by unknown's avatar unknown
Browse files

bug#13965

  ndb - error while restarting in dict
        improve error message when changed config leads to failed restart


ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  improve error message
parent 522bbb83
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -2397,7 +2397,19 @@ Dbdict::restartCreateTab_readTableConf(Signal* signal,
  Uint32 sz = c_readTableRecord.noOfPages * ZSIZE_OF_PAGES_IN_WORDS; 
  SimplePropertiesLinearReader r(&pageRecPtr.p->word[0], sz);
  handleTabInfoInit(r, &parseRecord);
  if (parseRecord.errorCode != 0)
  {
    char buf[255];
    BaseString::snprintf(buf, sizeof(buf), 
			 "Unable to restart, fail while creating table %d"
			 " error: %d. Most likely change of configution",
			 c_readTableRecord.tableId,
			 parseRecord.errorCode);
    progError(__LINE__, 
	      ERR_INVALID_CONFIG,
	      buf);
    ndbrequire(parseRecord.errorCode == 0);
  }
  
  /* ---------------------------------------------------------------- */
  // We have read the table description from disk as part of system restart.