aboutsummaryrefslogtreecommitdiff
path: root/boltsync_unix.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-09-22 11:53:19 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-09-22 11:53:19 -0600
commitd285804df1760edf4c602ecd901be5d5e67bf982 (patch)
treea69b6978e0c1231f5f051aabe6d16c7e9744c2c6 /boltsync_unix.go
parentMerge pull request #258 from davecgh/davec_build (diff)
parentFix bolt on OpenBSD. (diff)
downloaddedo-d285804df1760edf4c602ecd901be5d5e67bf982.tar.gz
dedo-d285804df1760edf4c602ecd901be5d5e67bf982.tar.xz
Merge pull request #259 from davecgh/jrick_msync
Fix bolt on OpenBSD
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()
}