mirror of https://github.com/etcd-io/bbolt.git
commit
1282a4aff7
|
@ -0,0 +1,9 @@
|
|||
// +build !linux
|
||||
|
||||
package bolt
|
||||
|
||||
import "os"
|
||||
|
||||
func fdatasync(f *os.File) error {
|
||||
return f.Sync()
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package bolt
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func fdatasync(f *os.File) error {
|
||||
return syscall.Fdatasync(int(f.Fd()))
|
||||
}
|
Loading…
Reference in New Issue