add init dnode status
This commit is contained in:
parent
e472edf6af
commit
22aa8b08a7
|
@ -140,6 +140,7 @@ int mgmtInitSystem() {
|
||||||
|
|
||||||
dnodeObj.lastReboot = tsRebootTime;
|
dnodeObj.lastReboot = tsRebootTime;
|
||||||
dnodeObj.numOfCores = (uint16_t)tsNumOfCores;
|
dnodeObj.numOfCores = (uint16_t)tsNumOfCores;
|
||||||
|
dnodeObj.status = TSDB_STATUS_READY;
|
||||||
if (dnodeObj.numOfVnodes == TSDB_INVALID_VNODE_NUM) {
|
if (dnodeObj.numOfVnodes == TSDB_INVALID_VNODE_NUM) {
|
||||||
mgmtSetDnodeMaxVnodes(&dnodeObj);
|
mgmtSetDnodeMaxVnodes(&dnodeObj);
|
||||||
mPrint("first access, set total vnodes:%d", dnodeObj.numOfVnodes);
|
mPrint("first access, set total vnodes:%d", dnodeObj.numOfVnodes);
|
||||||
|
|
Loading…
Reference in New Issue