Fix ci errors.
This commit is contained in:
parent
6d09d4864d
commit
304511aaa0
|
@ -1573,12 +1573,14 @@ _exit:
|
||||||
taosMemoryFree(cfgLineBuf);
|
taosMemoryFree(cfgLineBuf);
|
||||||
taosMemoryFree(buf);
|
taosMemoryFree(buf);
|
||||||
(void)taosCloseFile(&pFile);
|
(void)taosCloseFile(&pFile);
|
||||||
|
|
||||||
tjsonDelete(pJson);
|
tjsonDelete(pJson);
|
||||||
if (code != 0) {
|
if (code == TSDB_CODE_CFG_NOT_FOUND) {
|
||||||
(void)printf("failed to load from apollo url:%s at line %d since %s\n", url, lino, tstrerror(code));
|
uTrace("load from apoll url success");
|
||||||
|
TAOS_RETURN(TSDB_CODE_SUCCESS);
|
||||||
|
} else {
|
||||||
|
(void)printf("failed to load from apoll url:%s at line %d since %s\n", url, lino, tstrerror(code));
|
||||||
|
TAOS_RETURN(code);
|
||||||
}
|
}
|
||||||
TAOS_RETURN(code);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t cfgGetApollUrl(const char **envCmd, const char *envFile, char *apolloUrl) {
|
int32_t cfgGetApollUrl(const char **envCmd, const char *envFile, char *apolloUrl) {
|
||||||
|
|
Loading…
Reference in New Issue