fix fsync logic

This commit is contained in:
chrislu
2025-05-14 01:33:33 -07:00
parent 0be020b0fa
commit d8c574a5ef
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ func (v *Volume) writeNeedle2(n *needle.Needle, checkCookie bool, fsync bool) (o
n.Ttl = v.Ttl
}
if !fsync {
if fsync {
return v.syncWrite(n, checkCookie)
} else {
asyncRequest := needle.NewAsyncRequest(n, true)