1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-29 14:50:09 +02:00

Merge pull request #3079 from ztinpn/hotfix_fsync

This commit is contained in:
Chris Lu 2022-05-19 10:33:42 -07:00 committed by GitHub
commit cb64983c6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,7 +230,11 @@ func (fs *FilerServer) detectStorageOption0(requestURI, qCollection, qReplicatio
so, err := fs.detectStorageOption(requestURI, qCollection, qReplication, int32(ttl.Minutes())*60, diskType, dataCenter, rack, dataNode)
if so != nil {
so.Fsync = fsync == "true"
if fsync == "false" {
so.Fsync = false
} else if fsync == "true" {
so.Fsync = true
}
}
return so, err