aboutsummaryrefslogtreecommitdiff
path: root/boltsync_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'boltsync_unix.go')
-rw-r--r--boltsync_unix.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/boltsync_unix.go b/boltsync_unix.go
index 3c54dd5..8db8977 100644
--- a/boltsync_unix.go
+++ b/boltsync_unix.go
@@ -1,14 +1,10 @@
-// +build !windows,!plan9,!linux
+// +build !windows,!plan9,!linux,!openbsd
package bolt
-import (
- "os"
-)
-
var odirect int
// fdatasync flushes written data to a file descriptor.
-func fdatasync(f *os.File) error {
- return f.Sync()
+func fdatasync(db *DB) error {
+ return db.file.Sync()
}