diff options
Diffstat (limited to 'boltsync_unix.go')
-rw-r--r-- | boltsync_unix.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/boltsync_unix.go b/boltsync_unix.go new file mode 100644 index 0000000..3c54dd5 --- /dev/null +++ b/boltsync_unix.go @@ -0,0 +1,14 @@ +// +build !windows,!plan9,!linux + +package bolt + +import ( + "os" +) + +var odirect int + +// fdatasync flushes written data to a file descriptor. +func fdatasync(f *os.File) error { + return f.Sync() +} |