startBgsaveForReplication(): log what you really do.

This commit is contained in:
antirez 2015-08-06 09:49:38 +02:00
parent fd08839a3a
commit ce5761e061

View File

@ -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);