Commit ce5761e0 authored by antirez's avatar antirez
Browse files

startBgsaveForReplication(): log what you really do.

parent fd08839a
...@@ -490,11 +490,12 @@ need_full_resync: ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment