Skip to content

Commit

Permalink
Log error first in rdbLoadRio failure handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevgeniy Bondarenko committed Jul 29, 2021
1 parent 8cf9689 commit a398f9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,10 +1756,10 @@ void readSyncBulkPayload(connection *conn) {

if (rdbLoadRio(&rdb,RDBFLAGS_REPLICATION,&rsi) != C_OK) {
/* RDB loading failed. */
stopLoading(0);
serverLog(LL_WARNING,
"Failed trying to load the MASTER synchronization DB "
"from socket: %s", strerror(errno));
"Failed trying to load the MASTER synchronization DB "
"from socket: %s", strerror(errno));
stopLoading(0);
cancelReplicationHandshake(1);
rioFreeConn(&rdb, NULL);

Expand Down

0 comments on commit a398f9f

Please sign in to comment.