mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	fix: track object and bucket for exipreAll (#21241)
This commit is contained in:
		
							parent
							
								
									0e017ab071
								
							
						
					
					
						commit
						30a1261c22
					
				| @ -997,7 +997,16 @@ func (ri *batchJobInfo) updateAfter(ctx context.Context, api ObjectLayer, durati | ||||
| // a single action. e.g batch-expire has an option to expire all versions of an | ||||
| // object which matches the given filters. | ||||
| func (ri *batchJobInfo) trackMultipleObjectVersions(info expireObjInfo, success bool) { | ||||
| 	if ri == nil { | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	ri.mu.Lock() | ||||
| 	defer ri.mu.Unlock() | ||||
| 
 | ||||
| 	if success { | ||||
| 		ri.Bucket = info.Bucket | ||||
| 		ri.Object = info.Name | ||||
| 		ri.Objects += int64(info.NumVersions) - info.DeleteMarkerCount | ||||
| 		ri.DeleteMarkers += info.DeleteMarkerCount | ||||
| 	} else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user