summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-08-06 09:49:38 +0200
committerantirez <antirez@gmail.com>2015-08-06 09:49:38 +0200
commitce5761e0618b8d5788c2f6f8f6a514a77040ab24 (patch)
treef82208e65776e663ceaf71eddfdf6ef75ee5f0db
parentfd08839a3a9e8dba242886286f6d182044686e69 (diff)
downloadredis-ce5761e0618b8d5788c2f6f8f6a514a77040ab24.tar.gz
startBgsaveForReplication(): log what you really do.
-rw-r--r--src/replication.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/replication.c b/src/replication.c
index 48811f3dd..496452637 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -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",
- 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();
else
retval = rdbSaveBackground(server.rdb_filename);