mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
startBgsaveForReplication(): log what you really do.
This commit is contained in:
parent
fd08839a3a
commit
ce5761e061
@ -490,11 +490,12 @@ need_full_resync:
|
|||||||
* Returns C_OK on success or C_ERR otherwise. */
|
* Returns C_OK on success or C_ERR otherwise. */
|
||||||
int startBgsaveForReplication(int mincapa) {
|
int startBgsaveForReplication(int mincapa) {
|
||||||
int retval;
|
int retval;
|
||||||
|
int socket_target = server.repl_diskless_sync && (mincapa & SLAVE_CAPA_EOF);
|
||||||
|
|
||||||
serverLog(LL_NOTICE,"Starting BGSAVE for SYNC with target: %s",
|
serverLog(LL_NOTICE,"Starting BGSAVE for SYNC with target: %s",
|
||||||
server.repl_diskless_sync ? "slaves sockets" : "disk");
|
socket_target ? "slaves sockets" : "disk");
|
||||||
|
|
||||||
if (server.repl_diskless_sync && (mincapa & SLAVE_CAPA_EOF))
|
if (socket_target)
|
||||||
retval = rdbSaveToSlavesSockets();
|
retval = rdbSaveToSlavesSockets();
|
||||||
else
|
else
|
||||||
retval = rdbSaveBackground(server.rdb_filename);
|
retval = rdbSaveBackground(server.rdb_filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user