diff options
author | antirez <antirez@gmail.com> | 2015-08-06 09:49:38 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-08-06 12:34:25 +0200 |
commit | 809e2f4da8f4bdb6c2507ce923764bfc78055852 (patch) | |
tree | e4a4d4aa3a309601db59997440e2e980c7ec1176 | |
parent | ba3237604feacb7f27fcc4d5ed7cbd97767179a5 (diff) | |
download | redis-809e2f4da8f4bdb6c2507ce923764bfc78055852.tar.gz |
startBgsaveForReplication(): log what you really do.
-rw-r--r-- | src/replication.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/replication.c b/src/replication.c index 23f978dfc..7ab6d1dd4 100644 --- a/src/replication.c +++ b/src/replication.c @@ -490,11 +490,12 @@ need_full_resync: * Returns REDIS_OK on success or REDIS_ERR otherwise. */ int startBgsaveForReplication(int mincapa) { int retval; + int socket_target = server.repl_diskless_sync && (mincapa & SLAVE_CAPA_EOF); - redisLog(REDIS_NOTICE,"Starting BGSAVE for SYNC with target: %s", - server.repl_diskless_sync ? "slaves sockets" : "disk"); + redisLog(REIDS_NOTICE,"Starting BGSAVE for SYNC with target: %s", + 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); |