Unverified Commit aae0ec25 authored by chenyang8094's avatar chenyang8094 Committed by GitHub
Browse files

Only print final log when aof is loaded successfully (#10808)

Skip the print on AOF_NOT_EXIST status.
parent cf3323db
...@@ -6475,7 +6475,8 @@ void loadDataFromDisk(void) { ...@@ -6475,7 +6475,8 @@ void loadDataFromDisk(void) {
int ret = loadAppendOnlyFiles(server.aof_manifest); int ret = loadAppendOnlyFiles(server.aof_manifest);
if (ret == AOF_FAILED || ret == AOF_OPEN_ERR) if (ret == AOF_FAILED || ret == AOF_OPEN_ERR)
exit(1); exit(1);
serverLog(LL_NOTICE, "DB loaded from append only file: %.3f seconds", (float)(ustime()-start)/1000000); if (ret != AOF_NOT_EXIST)
serverLog(LL_NOTICE, "DB loaded from append only file: %.3f seconds", (float)(ustime()-start)/1000000);
} else { } else {
rdbSaveInfo rsi = RDB_SAVE_INFO_INIT; rdbSaveInfo rsi = RDB_SAVE_INFO_INIT;
errno = 0; /* Prevent a stale value from affecting error checking */ errno = 0; /* Prevent a stale value from affecting error checking */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment