mirror of
https://github.com/minio/minio.git
synced 2025-04-22 03:24:38 -04:00
fix: ensure pending replication queued to MRF queue (#12138)
Signed-off-by: Poorna Krishnamoorthy <poorna@minio.io>
This commit is contained in:
parent
7c8d83ec92
commit
014e419151
@ -776,7 +776,7 @@ func replicateObject(ctx context.Context, ri ReplicateObjectInfo, objectAPI Obje
|
|||||||
}
|
}
|
||||||
// re-queue failures once more - keep a retry count to avoid flooding the queue if
|
// re-queue failures once more - keep a retry count to avoid flooding the queue if
|
||||||
// the target site is down. Leave it to scanner to catch up instead.
|
// the target site is down. Leave it to scanner to catch up instead.
|
||||||
if replicationStatus == replication.Failed && ri.RetryCount < 1 {
|
if replicationStatus != replication.Completed && ri.RetryCount < 1 {
|
||||||
ri.OpType = replication.HealReplicationType
|
ri.OpType = replication.HealReplicationType
|
||||||
ri.RetryCount++
|
ri.RetryCount++
|
||||||
globalReplicationPool.queueReplicaTask(ctx, ri)
|
globalReplicationPool.queueReplicaTask(ctx, ri)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user