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
40c41831
Commit
40c41831
authored
Jul 30, 2019
by
Oran Agra
Browse files
Log message when modules prevent diskless-load
parent
07b1abab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
40c41831
...
...
@@ -1118,8 +1118,11 @@ static int useDisklessLoad() {
int
enabled
=
server
.
repl_diskless_load
==
REPL_DISKLESS_LOAD_SWAPDB
||
(
server
.
repl_diskless_load
==
REPL_DISKLESS_LOAD_WHEN_DB_EMPTY
&&
dbTotalServerKeyCount
()
==
0
);
/* Check all modules handle read errors, otherwise it's not safe to use diskless load. */
if
(
enabled
&&
!
moduleAllDatatypesHandleErrors
())
if
(
enabled
&&
!
moduleAllDatatypesHandleErrors
())
{
serverLog
(
LL_WARNING
,
"Skipping diskless-load because there are modules that don't handle read errors."
);
enabled
=
0
;
}
return
enabled
;
}
...
...
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