Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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) |
|
|
|
if so != nil { |
|
|
|
so.Fsync = fsync == "true" |
|
|
|
if fsync == "false" { |
|
|
|
so.Fsync = false |
|
|
|
} else if fsync == "true" { |
|
|
|
so.Fsync = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return so, err |
|
|
|