mirror of https://mirror.osredm.com/root/redis.git
Check that the file exists in removeRDBUsedToSyncReplicas().
This commit is contained in:
parent
ff024e3064
commit
d16bb64fa4
|
@ -944,12 +944,16 @@ void removeRDBUsedToSyncReplicas(void) {
|
|||
}
|
||||
}
|
||||
if (delrdb) {
|
||||
serverLog(LL_NOTICE,"Removing the RDB file used to feed replicas "
|
||||
"in a persistence-less instance");
|
||||
struct stat sb;
|
||||
if (lstat(server.rdb_filename,&sb) != -1) {
|
||||
RDBGeneratedByReplication = 0;
|
||||
serverLog(LL_NOTICE,
|
||||
"Removing the RDB file used to feed replicas "
|
||||
"in a persistence-less instance");
|
||||
bg_unlink(server.rdb_filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sendBulkToSlave(connection *conn) {
|
||||
|
|
Loading…
Reference in New Issue