diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-09-22 11:53:19 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-09-22 11:53:19 -0600 |
commit | d285804df1760edf4c602ecd901be5d5e67bf982 (patch) | |
tree | a69b6978e0c1231f5f051aabe6d16c7e9744c2c6 /bolt_linux.go | |
parent | Merge pull request #258 from davecgh/davec_build (diff) | |
parent | Fix bolt on OpenBSD. (diff) | |
download | dedo-d285804df1760edf4c602ecd901be5d5e67bf982.tar.gz dedo-d285804df1760edf4c602ecd901be5d5e67bf982.tar.xz |
Merge pull request #259 from davecgh/jrick_msync
Fix bolt on OpenBSD
Diffstat (limited to 'bolt_linux.go')
-rw-r--r-- | bolt_linux.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bolt_linux.go b/bolt_linux.go index 7e3e539..e9d1c90 100644 --- a/bolt_linux.go +++ b/bolt_linux.go @@ -1,13 +1,12 @@ package bolt import ( - "os" "syscall" ) var odirect = syscall.O_DIRECT // fdatasync flushes written data to a file descriptor. -func fdatasync(f *os.File) error { - return syscall.Fdatasync(int(f.Fd())) +func fdatasync(db *DB) error { + return syscall.Fdatasync(int(db.file.Fd())) } |