diff options
author | Xiang Li <xiangli.cs@gmail.com> | 2015-11-06 10:49:46 -0800 |
---|---|---|
committer | Xiang Li <xiangli.cs@gmail.com> | 2015-11-06 11:03:28 -0800 |
commit | b9869663616be4ac56a1222841265dc0b696c253 (patch) | |
tree | 05c15ec01f253b7c6872b0e695e23bb1c842fe82 /bolt_openbsd.go | |
parent | Merge pull request #451 from Charlesworth/master (diff) | |
download | dedo-b9869663616be4ac56a1222841265dc0b696c253.tar.gz dedo-b9869663616be4ac56a1222841265dc0b696c253.tar.xz |
add WriteToFlag to Tx
For in memory workload, it does not make sense to use
o_direct to copy the file. Adding a option to clear out
o_direct and for other future cases.
Diffstat (limited to 'bolt_openbsd.go')
-rw-r--r-- | bolt_openbsd.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bolt_openbsd.go b/bolt_openbsd.go index 7c1bef1..7058c3d 100644 --- a/bolt_openbsd.go +++ b/bolt_openbsd.go @@ -11,8 +11,6 @@ const ( msInvalidate // invalidate cached data ) -var odirect int - func msync(db *DB) error { _, _, errno := syscall.Syscall(syscall.SYS_MSYNC, uintptr(unsafe.Pointer(db.data)), uintptr(db.datasz), msInvalidate) if errno != 0 { |