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
947319ca
Commit
947319ca
authored
Jul 18, 2019
by
antirez
Browse files
RDB: update rdbLoadRio comment about EOF condition.
parent
42b63059
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
947319ca
...
...
@@ -2169,8 +2169,13 @@ int rdbLoadRio(rio *rdb, rdbSaveInfo *rsi, int loading_aof) {
}
return
C_OK
;
eoferr:
/* unexpected end of file is handled here with a fatal exit */
serverLog
(
LL_WARNING
,
"Short read or OOM loading DB. Unrecoverable error, aborting now."
);
/* Unexpected end of file is handled here calling rdbReportReadError():
* this will in turn either abort Redis in most cases, or if we are loading
* the RDB file from a socket during initial SYNC (diskless replica mode),
* we'll report the error to the caller, so that we can retry. */
eoferr:
serverLog
(
LL_WARNING
,
"Short read or OOM loading DB. Unrecoverable error, aborting now."
);
rdbReportReadError
(
"Unexpected EOF reading RDB file"
);
return
C_ERR
;
}
...
...
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