mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
Use O_EXCL when creating file as we never overwrite an existing file (#7189)
This commit is contained in:
committed by
Harshavardhana
parent
e9fdea05c6
commit
6f08edfb36
@@ -323,6 +323,11 @@ func TestHealing(t *testing.T) {
|
||||
t.Fatal("HealObject failed")
|
||||
}
|
||||
|
||||
err = os.RemoveAll(path.Join(fsDirs[0], bucket, object, "xl.json"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Write xl.json with different modtime to simulate the case where a disk had
|
||||
// gone down when an object was replaced by a new object.
|
||||
xlMetaOutDated := xlMetaPreHeal
|
||||
|
||||
Reference in New Issue
Block a user