fix: resync of replication of delete markers (#12932)

Fixes #12919
This commit is contained in:
Poorna Krishnamoorthy
2021-08-23 17:48:22 -04:00
committed by GitHub
parent db35bcf2ce
commit 674c6f7a7b
5 changed files with 27 additions and 3 deletions

View File

@@ -1173,7 +1173,7 @@ func (i *scannerItem) healReplication(ctx context.Context, o ObjectLayer, oi Obj
return
}
// if replication status is Complete on DeleteMarker and existing object resync required
if existingObjResync && oi.ReplicationStatus == replication.Completed {
if existingObjResync && (oi.ReplicationStatus == replication.Completed) {
i.healReplicationDeletes(ctx, o, oi, existingObjResync)
return
}