From b9869663616be4ac56a1222841265dc0b696c253 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 6 Nov 2015 10:49:46 -0800 Subject: 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. --- bolt_openbsd.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'bolt_openbsd.go') 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 { -- cgit v1.2.3