fix[TS-4921] set flag -1 if init monitor failed

This commit is contained in:
wangmm0220 2024-07-05 09:41:34 +08:00
parent 64e7c4c842
commit 8087dbe16d
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}