Merge remote-tracking branch 'origin/feature/sim' into feature/win

This commit is contained in:
Shengliang Guan 2021-01-28 16:25:20 +08:00
commit 9cf5009897
6 changed files with 6 additions and 6 deletions

View File

@ -156,7 +156,7 @@ static int32_t dnodeWriteCfg() {
len += snprintf(content + len, maxLen - len, "}\n");
fwrite(content, 1, len, fp);
fflush(fp);
fsync(fileno(fp));
fclose(fp);
free(content);
terrno = 0;

View File

@ -277,7 +277,7 @@ static int32_t dnodeWriteEps() {
len += snprintf(content + len, maxLen - len, "}\n");
fwrite(content, 1, len, fp);
fflush(fp);
fsync(fileno(fp));
fclose(fp);
free(content);
terrno = 0;

View File

@ -286,7 +286,7 @@ static int32_t dnodeWriteMInfos() {
len += snprintf(content + len, maxLen - len, "}\n");
fwrite(content, 1, len, fp);
fflush(fp);
fsync(fileno(fp));
fclose(fp);
free(content);
terrno = 0;

View File

@ -123,7 +123,7 @@ static void mnodePrintUserAuth() {
mnodeDecUserRef(pUser);
}
fflush(fp);
fsync(fileno(fp));
fclose(fp);
}

View File

@ -341,7 +341,7 @@ int32_t vnodeWriteCfg(SCreateVnodeMsg *pMsg) {
len += snprintf(content + len, maxLen - len, "}\n");
fwrite(content, 1, len, fp);
fflush(fp);
fsync(fileno(fp));
fclose(fp);
free(content);
terrno = 0;

View File

@ -90,7 +90,7 @@ int32_t vnodeSaveVersion(SVnodeObj *pVnode) {
len += snprintf(content + len, maxLen - len, "}\n");
fwrite(content, 1, len, fp);
fflush(fp);
fsync(fileno(fp));
fclose(fp);
free(content);
terrno = 0;