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();
|
initQueryModuleMsgHandle();
|
||||||
|
|
||||||
if (taosConvInit() != 0) {
|
if (taosConvInit() != 0) {
|
||||||
|
tscInitRes = -1;
|
||||||
tscError("failed to init conv");
|
tscError("failed to init conv");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (monitorInit() != 0){
|
if (monitorInit() != 0){
|
||||||
|
tscInitRes = -1;
|
||||||
tscError("failed to init monitor");
|
tscError("failed to init monitor");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue