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_linux.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'bolt_linux.go') diff --git a/bolt_linux.go b/bolt_linux.go index e9d1c90..2b67666 100644 --- a/bolt_linux.go +++ b/bolt_linux.go @@ -4,8 +4,6 @@ import ( "syscall" ) -var odirect = syscall.O_DIRECT - // fdatasync flushes written data to a file descriptor. func fdatasync(db *DB) error { return syscall.Fdatasync(int(db.file.Fd())) -- cgit v1.2.3