mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04: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"])
|
etagOnly := modTime.Equal(timeSentinel) && (etag != "" && etag == meta.Metadata["etag"])
|
||||||
mtimeValid := meta.ModTime.Equal(modTime)
|
mtimeValid := meta.ModTime.Equal(modTime)
|
||||||
if mtimeValid || etagOnly {
|
if mtimeValid || etagOnly {
|
||||||
|
fmt.Fprint(h, meta.SuccessorModTime.Format(http.TimeFormat))
|
||||||
fmt.Fprintf(h, "%v", meta.XLV1)
|
fmt.Fprintf(h, "%v", meta.XLV1)
|
||||||
if !etagOnly {
|
if !etagOnly {
|
||||||
// Verify dataDir is same only when mtime is valid and etag is not considered.
|
// Verify dataDir is same only when mtime is valid and etag is not considered.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user