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
ce5761e0
Commit
ce5761e0
authored
Aug 06, 2015
by
antirez
Browse files
startBgsaveForReplication(): log what you really do.
parent
fd08839a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
ce5761e0
...
...
@@ -490,11 +490,12 @@ need_full_resync:
* Returns C_OK on success or C_ERR otherwise. */
int
startBgsaveForReplication
(
int
mincapa
)
{
int
retval
;
int
socket_target
=
server
.
repl_diskless_sync
&&
(
mincapa
&
SLAVE_CAPA_EOF
);
serverLog
(
LL_NOTICE
,
"Starting BGSAVE for SYNC with target: %s"
,
s
erver
.
repl_diskless_sync
?
"slaves sockets"
:
"disk"
);
s
ocket_target
?
"slaves sockets"
:
"disk"
);
if
(
s
erver
.
repl_diskless_sync
&&
(
mincapa
&
SLAVE_CAPA_EOF
)
)
if
(
s
ocket_target
)
retval
=
rdbSaveToSlavesSockets
();
else
retval
=
rdbSaveBackground
(
server
.
rdb_filename
);
...
...
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