if sched is not ready, will cause a deadlock
This commit is contained in:
parent
3582b23807
commit
5f132980e8
|
@ -52,14 +52,14 @@ int32_t mgmtInitDServer() {
|
||||||
rpcInit.idleTime = tsShellActivityTimer * 1000;
|
rpcInit.idleTime = tsShellActivityTimer * 1000;
|
||||||
rpcInit.afp = mgmtDServerRetrieveAuth;
|
rpcInit.afp = mgmtDServerRetrieveAuth;
|
||||||
|
|
||||||
|
tsMgmtDServerQhandle = taosInitScheduler(tsMaxShellConns, 1, "MS");
|
||||||
|
|
||||||
tsMgmtDServerRpc = rpcOpen(&rpcInit);
|
tsMgmtDServerRpc = rpcOpen(&rpcInit);
|
||||||
if (tsMgmtDServerRpc == NULL) {
|
if (tsMgmtDServerRpc == NULL) {
|
||||||
mError("failed to init server connection to dnode");
|
mError("failed to init server connection to dnode");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
tsMgmtDServerQhandle = taosInitScheduler(tsMaxShellConns, 1, "MS");
|
|
||||||
|
|
||||||
mPrint("server connection to dnode is opened");
|
mPrint("server connection to dnode is opened");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue