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. --- cmd/bolt/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/bolt/main_test.go') diff --git a/cmd/bolt/main_test.go b/cmd/bolt/main_test.go index 9b32cc8..0614d43 100644 --- a/cmd/bolt/main_test.go +++ b/cmd/bolt/main_test.go @@ -14,7 +14,7 @@ func open(fn func(*bolt.DB, string)) { path := tempfile() defer os.RemoveAll(path) - db, err := bolt.Open(path, 0600) + db, err := bolt.Open(path, 0600, nil) if err != nil { panic("db open error: " + err.Error()) } -- cgit v1.2.3