Commit 0bac8585 authored by mronstrom@mysql.com's avatar mronstrom@mysql.com

Fixing an issue with using UNDEFINED as default parameter value

which means that the ndbd process will not know anything about the
value
parent 1aa337ec
...@@ -423,10 +423,16 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){ ...@@ -423,10 +423,16 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
const int sz = sizeof(tmp)/sizeof(AttribStorage); const int sz = sizeof(tmp)/sizeof(AttribStorage);
for(int i = 0; i<sz; i++){ for(int i = 0; i<sz; i++){
if(ndb_mgm_get_int_parameter(&db, tmp[i].paramId, tmp[i].storage)){ if(ndb_mgm_get_int_parameter(&db, tmp[i].paramId, tmp[i].storage)){
snprintf(buf, sizeof(buf), "ConfigParam: %d not found", tmp[i].paramId); if (tmp[i].paramId == CFG_DB_NO_LOCAL_SCANS) {
noOfLocalScanRecords = 0;
} else if (tmp[i].paramId == CFG_DB_NO_LOCAL_OPS) {
noOfLocalOperations = 0;
} else {
snprintf(buf, sizeof(buf),"ConfigParam: %d not found", tmp[i].paramId);
ERROR_SET(fatal, ERR_INVALID_CONFIG, msg, buf); ERROR_SET(fatal, ERR_INVALID_CONFIG, msg, buf);
} }
} }
}
Uint64 indexMem = 0, dataMem = 0; Uint64 indexMem = 0, dataMem = 0;
ndb_mgm_get_int64_parameter(&db, CFG_DB_DATA_MEM, &dataMem); ndb_mgm_get_int64_parameter(&db, CFG_DB_DATA_MEM, &dataMem);
......
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