mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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. */
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user