mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	calculate correct quorum check for metadata updates on object (#18979)
this fixes rare bugs we have seen but never really found a reproducer for - PutObjectRetention() returning 503s - PutObjectTags() returning 503s - PutObjectMetadata() updates during replication returning 503s These calls return errors, and this perpetuates with no apparent fix. This PR fixes with correct quorum requirement.
This commit is contained in:
		
							parent
							
								
									6f16d1cb2c
								
							
						
					
					
						commit
						794a7993cb
					
				| @ -2171,7 +2171,7 @@ func (er erasureObjects) updateObjectMetaWithOpts(ctx context.Context, bucket, o | ||||
| 	// Wait for all the routines. | ||||
| 	mErrs := g.Wait() | ||||
| 
 | ||||
| 	return reduceWriteQuorumErrs(ctx, mErrs, objectOpIgnoredErrs, er.defaultWQuorum()) | ||||
| 	return reduceWriteQuorumErrs(ctx, mErrs, objectOpIgnoredErrs, fi.WriteQuorum(er.defaultWQuorum())) | ||||
| } | ||||
| 
 | ||||
| // updateObjectMeta will update the metadata of a file. | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user