Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
aae0ec25
Unverified
Commit
aae0ec25
authored
Jun 02, 2022
by
chenyang8094
Committed by
GitHub
Jun 02, 2022
Browse files
Only print final log when aof is loaded successfully (#10808)
Skip the print on AOF_NOT_EXIST status.
parent
cf3323db
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
aae0ec25
...
@@ -6475,6 +6475,7 @@ void loadDataFromDisk(void) {
...
@@ -6475,6 +6475,7 @@ 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
);
if
(
ret
!=
AOF_NOT_EXIST
)
serverLog
(
LL_NOTICE
,
"DB loaded from append only file: %.3f seconds"
,
(
float
)(
ustime
()
-
start
)
/
1000000
);
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment