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.afp = mgmtDServerRetrieveAuth;
|
||||
|
||||
tsMgmtDServerQhandle = taosInitScheduler(tsMaxShellConns, 1, "MS");
|
||||
|
||||
tsMgmtDServerRpc = rpcOpen(&rpcInit);
|
||||
if (tsMgmtDServerRpc == NULL) {
|
||||
mError("failed to init server connection to dnode");
|
||||
return -1;
|
||||
}
|
||||
|
||||
tsMgmtDServerQhandle = taosInitScheduler(tsMaxShellConns, 1, "MS");
|
||||
|
||||
mPrint("server connection to dnode is opened");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue