hotfix_fsync fix fsync

This commit is contained in:
tianzhang 2022-05-19 23:17:17 +08:00
parent a3a718284b
commit 66747ee9c9

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