diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-21 14:44:22 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-06-21 14:44:28 -0600 |
commit | 00ee0da5289dd5aaf9263ee39c8082ff3a9557c7 (patch) | |
tree | eb405a03d008ee600d3d59ac2fe657caf397eabe /bolt_windows.go | |
parent | Merge pull request #206 from Shopify/pending_page_stats (diff) | |
download | dedo-00ee0da5289dd5aaf9263ee39c8082ff3a9557c7.tar.gz dedo-00ee0da5289dd5aaf9263ee39c8082ff3a9557c7.tar.xz |
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.
Diffstat (limited to 'bolt_windows.go')
-rw-r--r-- | bolt_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |