mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	fix: use transition/replication fields in FileInfo quorum calculation (#13010)
This commit is contained in:
		
							parent
							
								
									47b577fcc0
								
							
						
					
					
						commit
						e210cb3670
					
				| @ -278,6 +278,18 @@ func findFileInfoInQuorum(ctx context.Context, metaArr []FileInfo, modTime time. | |||||||
| 			h.Write([]byte(fmt.Sprintf("%v", meta.Erasure.Distribution))) | 			h.Write([]byte(fmt.Sprintf("%v", meta.Erasure.Distribution))) | ||||||
| 			// make sure that length of Data is same | 			// make sure that length of Data is same | ||||||
| 			h.Write([]byte(fmt.Sprintf("%v", len(meta.Data)))) | 			h.Write([]byte(fmt.Sprintf("%v", len(meta.Data)))) | ||||||
|  | 
 | ||||||
|  | 			// ILM transition fields | ||||||
|  | 			h.Write([]byte(meta.TransitionStatus)) | ||||||
|  | 			h.Write([]byte(meta.TransitionTier)) | ||||||
|  | 			h.Write([]byte(meta.TransitionedObjName)) | ||||||
|  | 			h.Write([]byte(meta.TransitionVersionID)) | ||||||
|  | 
 | ||||||
|  | 			// Server-side replication fields | ||||||
|  | 			h.Write([]byte(fmt.Sprintf("%v", meta.MarkDeleted))) | ||||||
|  | 			h.Write([]byte(meta.DeleteMarkerReplicationStatus)) | ||||||
|  | 			h.Write([]byte(meta.VersionPurgeStatus)) | ||||||
|  | 			h.Write([]byte(meta.Metadata[xhttp.AmzBucketReplicationStatus])) | ||||||
| 			metaHashes[i] = hex.EncodeToString(h.Sum(nil)) | 			metaHashes[i] = hex.EncodeToString(h.Sum(nil)) | ||||||
| 			h.Reset() | 			h.Reset() | ||||||
| 		} | 		} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user