• unknown's avatar
    BUG#28298 Node Id larger than MAX_NDB_NODES in config file doesn't generate error · 3a3e2c79
    unknown authored
    
    ndb/include/kernel/ndb_limits.h:
      1) define a macro MAX_DATA_NODE_ID to set the max ID of data nodes to be MAX_NDB_NODES - 1
      2) define a macro MAX_NODES_ID to set the max ID of API and MGM to be MAX_NODES -1
    ndb/src/mgmsrv/ConfigInfo.cpp:
      1) replace MAX_NODES with MAX_DATA_NODE_ID (= MAX_NDB_NODES - 1)  when the NodeId represents data nodes.
      2) replace MAX_NODES with MAX_NODES_ID (= MAX_NODES -1) when the NodeId represents API or MGM nodes.
    3a3e2c79
ndb_limits.h 4.35 KB