mirror of https://github.com/minio/minio.git
				
				
				
			delete replication: avoid overwriting replication decision (#18174)
from ObjectInfo unless version purge status is present. Otherwise there is potential to make incorrect replication decision if Stat returned an error
This commit is contained in:
		
							parent
							
								
									4bda4e4e2b
								
							
						
					
					
						commit
						72871dbb9a
					
				|  | @ -376,8 +376,10 @@ func checkReplicateDelete(ctx context.Context, bucket string, dobj ObjectToDelet | |||
| 			} else { | ||||
| 				// can be the case that other cluster is down and duplicate `mc rm --vid`
 | ||||
| 				// is issued - this still needs to be replicated back to the other target
 | ||||
| 				if !oi.VersionPurgeStatus.Empty() { | ||||
| 					replicate = oi.VersionPurgeStatus == Pending || oi.VersionPurgeStatus == Failed | ||||
| 					dsc.Set(newReplicateTargetDecision(tgtArn, replicate, sync)) | ||||
| 				} | ||||
| 				continue | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue