From 76f20729fc6eeb40f3c1a5598ead18b111fa52bf Mon Sep 17 00:00:00 2001
From: ArkayZheng <Arkay_Zheng@163.com>
Date: Fri, 25 Jan 2019 21:48:23 +0800
Subject: [PATCH] Fix the output bug in rename exceptions.

---
 src/replication.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/replication.c b/src/replication.c
index a3425754..3bc42d62 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -1258,7 +1258,8 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
         }
 
         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();
             return;
         }