mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Merge pull request #3079 from ztinpn/hotfix_fsync
This commit is contained in:
commit
cb64983c6b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue