Merge pull request #5808 from ArkayZheng/ArkayWork

Fix the output of serverLog in replication.c
This commit is contained in:
Salvatore Sanfilippo 2019-01-27 12:16:14 +01:00 committed by GitHub
commit 4e6abe2bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1258,7 +1258,8 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
} }
if (rename(server.repl_transfer_tmpfile,server.rdb_filename) == -1) { if (rename(server.repl_transfer_tmpfile,server.rdb_filename) == -1) {
serverLog(LL_WARNING,"Failed trying to rename the temp DB into dump.rdb in MASTER <-> REPLICA synchronization: %s", strerror(errno)); serverLog(LL_WARNING,"Failed trying to rename the temp DB into %s in MASTER <-> REPLICA synchronization: %s",
server.rdb_filename, strerror(errno));
cancelReplicationHandshake(); cancelReplicationHandshake();
return; return;
} }