mirror of https://github.com/minio/minio.git
This reverts commit bf3901342c
.
This is to fix a regression caused when there are inconsistent
versions, but one version is in quorum. SuccessorModTime issue
must be fixed differently.
This commit is contained in:
parent
8a9b886011
commit
9ebd10d3f4
|
@ -3,6 +3,7 @@
|
||||||
set -E
|
set -E
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
set -x
|
set -x
|
||||||
|
set -e
|
||||||
|
|
||||||
WORK_DIR="$PWD/.verify-$RANDOM"
|
WORK_DIR="$PWD/.verify-$RANDOM"
|
||||||
MINIO_CONFIG_DIR="$WORK_DIR/.minio"
|
MINIO_CONFIG_DIR="$WORK_DIR/.minio"
|
||||||
|
|
|
@ -342,7 +342,6 @@ 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…
Reference in New Issue