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_windows.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'bolt_windows.go') diff --git a/bolt_windows.go b/bolt_windows.go index f048365..91c4968 100644 --- a/bolt_windows.go +++ b/bolt_windows.go @@ -40,8 +40,6 @@ func unlockFileEx(h syscall.Handle, reserved, locklow, lockhigh uint32, ol *sysc return nil } -var odirect int - // fdatasync flushes written data to a file descriptor. func fdatasync(db *DB) error { return db.file.Sync() -- cgit v1.2.3