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