Include SuccessorModTime for FileInfo quorum (#17732)

This commit is contained in:
Krishnan Parthasarathi 2023-07-26 17:04:16 -07:00 committed by GitHub
parent e1731d9403
commit bf3901342c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -342,6 +342,7 @@ func findFileInfoInQuorum(ctx context.Context, metaArr []FileInfo, modTime time.
etagOnly := modTime.Equal(timeSentinel) && (etag != "" && etag == meta.Metadata["etag"])
mtimeValid := meta.ModTime.Equal(modTime)
if mtimeValid || etagOnly {
fmt.Fprint(h, meta.SuccessorModTime.Format(http.TimeFormat))
fmt.Fprintf(h, "%v", meta.XLV1)
if !etagOnly {
// Verify dataDir is same only when mtime is valid and etag is not considered.