Browse Source

Merge pull request #3079 from ztinpn/hotfix_fsync

pull/3080/head
Chris Lu 3 years ago
committed by GitHub
parent
commit
cb64983c6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      weed/server/filer_server_handlers_write.go

6
weed/server/filer_server_handlers_write.go

@ -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) so, err := fs.detectStorageOption(requestURI, qCollection, qReplication, int32(ttl.Minutes())*60, diskType, dataCenter, rack, dataNode)
if so != nil { if so != nil {
so.Fsync = fsync == "true"
if fsync == "false" {
so.Fsync = false
} else if fsync == "true" {
so.Fsync = true
}
} }
return so, err return so, err

Loading…
Cancel
Save