mirror of
https://github.com/minio/minio
synced 2024-10-15 04:12:45 +00:00
Include SuccessorModTime for FileInfo quorum (#17732)
This commit is contained in:
parent
e1731d9403
commit
bf3901342c
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue