aboutsummaryrefslogtreecommitdiff
path: root/bolt_openbsd.go
diff options
context:
space:
mode:
authorXiang Li <xiangli.cs@gmail.com>2015-11-06 10:49:46 -0800
committerXiang Li <xiangli.cs@gmail.com>2015-11-06 11:03:28 -0800
commitb9869663616be4ac56a1222841265dc0b696c253 (patch)
tree05c15ec01f253b7c6872b0e695e23bb1c842fe82 /bolt_openbsd.go
parentMerge pull request #451 from Charlesworth/master (diff)
downloaddedo-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.go2
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 {