From 00ee0da5289dd5aaf9263ee39c8082ff3a9557c7 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sat, 21 Jun 2014 14:44:22 -0600 Subject: Add Open() options, flock timeout. This commit changes Open() to provide an additional Options argument. The options argument currently only has a Timeout which will cause the Open() to return ErrTimeout if a file lock cannot be obtained in time. Fixes #207. --- bolt_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bolt_windows.go') diff --git a/bolt_windows.go b/bolt_windows.go index 8300d40..fc77968 100644 --- a/bolt_windows.go +++ b/bolt_windows.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "syscall" + "time" "unsafe" ) @@ -15,7 +16,7 @@ func fdatasync(f *os.File) error { } // flock acquires an advisory lock on a file descriptor. -func flock(f *os.File) error { +func flock(f *os.File, _ time.Duration) error { return nil } -- cgit v1.2.3