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 /cmd/bolt/pages.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 'cmd/bolt/pages.go')
-rw-r--r-- | cmd/bolt/pages.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bolt/pages.go b/cmd/bolt/pages.go index 33f6886..ec1c4b4 100644 --- a/cmd/bolt/pages.go +++ b/cmd/bolt/pages.go @@ -14,7 +14,7 @@ func Pages(path string) { return } - db, err := bolt.Open(path, 0600) + db, err := bolt.Open(path, 0600, nil) if err != nil { fatal(err) return |