fix[TS-4921] set flag -1 if init monitor failed
This commit is contained in:
parent
64e7c4c842
commit
8087dbe16d
|
@ -864,10 +864,12 @@ void taos_init_imp(void) {
|
|||
initQueryModuleMsgHandle();
|
||||
|
||||
if (taosConvInit() != 0) {
|
||||
tscInitRes = -1;
|
||||
tscError("failed to init conv");
|
||||
return;
|
||||
}
|
||||
if (monitorInit() != 0){
|
||||
tscInitRes = -1;
|
||||
tscError("failed to init monitor");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue