Commit ee539eed authored by unknown's avatar unknown

Fixing an issue with using UNDEFINED as default parameter value

which means that the ndbd process will not know anything about the
value
parent aed8367b
......@@ -423,8 +423,14 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
const int sz = sizeof(tmp)/sizeof(AttribStorage);
for(int i = 0; i<sz; i++){
if(ndb_mgm_get_int_parameter(&db, tmp[i].paramId, tmp[i].storage)){
snprintf(buf, sizeof(buf), "ConfigParam: %d not found", tmp[i].paramId);
ERROR_SET(fatal, ERR_INVALID_CONFIG, msg, buf);
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);
}
}
}
......
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