TD-1762
This commit is contained in:
parent
9b7f04b059
commit
d2c852c8e9
|
@ -127,6 +127,7 @@ PARSE_CFG_OVER:
|
|||
if (content != NULL) free(content);
|
||||
if (root != NULL) cJSON_Delete(root);
|
||||
if (fp != NULL) fclose(fp);
|
||||
terrno = 0;
|
||||
|
||||
dnodeResetCfg(&cfg);
|
||||
return 0;
|
||||
|
@ -155,6 +156,7 @@ static int32_t dnodeWriteCfg() {
|
|||
fflush(fp);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
terrno = 0;
|
||||
|
||||
dInfo("successed to write %s", file);
|
||||
return 0;
|
||||
|
|
|
@ -235,6 +235,7 @@ PRASE_EPS_OVER:
|
|||
dnodeResetEps(eps);
|
||||
if (eps) free(eps);
|
||||
|
||||
terrno = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -272,6 +273,7 @@ static int32_t dnodeWriteEps() {
|
|||
fflush(fp);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
terrno = 0;
|
||||
|
||||
dInfo("successed to write %s", file);
|
||||
return 0;
|
||||
|
|
|
@ -238,6 +238,7 @@ PARSE_MINFOS_OVER:
|
|||
if (content != NULL) free(content);
|
||||
if (root != NULL) cJSON_Delete(root);
|
||||
if (fp != NULL) fclose(fp);
|
||||
terrno = 0;
|
||||
|
||||
dnodeResetMInfos(&minfos);
|
||||
return 0;
|
||||
|
@ -276,6 +277,7 @@ static int32_t dnodeWriteMInfos() {
|
|||
fflush(fp);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
terrno = 0;
|
||||
|
||||
dInfo("successed to write %s", file);
|
||||
return 0;
|
||||
|
|
|
@ -262,6 +262,7 @@ PARSE_VCFG_ERROR:
|
|||
vnodeLoadCfg(pVnode, &vnodeMsg);
|
||||
}
|
||||
|
||||
terrno = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -316,6 +317,7 @@ int32_t vnodeWriteCfg(SMDCreateVnodeMsg *pMsg) {
|
|||
fflush(fp);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
terrno = 0;
|
||||
|
||||
vInfo("vgId:%d, successed to write %s", pMsg->cfg.vgId, file);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
|
|
|
@ -70,6 +70,7 @@ PARSE_VER_ERROR:
|
|||
if (content != NULL) free(content);
|
||||
if (root != NULL) cJSON_Delete(root);
|
||||
if (fp != NULL) fclose(fp);
|
||||
terrno = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -96,6 +97,7 @@ int32_t vnodeSaveVersion(SVnodeObj *pVnode) {
|
|||
fflush(fp);
|
||||
fclose(fp);
|
||||
free(content);
|
||||
terrno = 0;
|
||||
|
||||
vInfo("vgId:%d, successed to write %s, version:%" PRId64, pVnode->vgId, file, pVnode->fversion);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue