Vendor libkv @ 1d84310

Signed-off-by: Alessandro Boch <aboch@docker.com>
Upstream-commit: f9cff5e267b5e6eb9046286e8a4e43552da605eb
Component: engine
This commit is contained in:
Alessandro Boch
2016-11-21 14:07:51 -08:00
parent a4da4522af
commit 780b0ff3be
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -59,6 +59,7 @@ func New(endpoints []string, options *store.Config) (store.Store, error) {
db *bolt.DB
err error
boltOptions *bolt.Options
timeout = transientTimeout
)
if len(endpoints) > 1 {
@@ -82,11 +83,15 @@ func New(endpoints []string, options *store.Config) (store.Store, error) {
}
}
if options.ConnectionTimeout != 0 {
timeout = options.ConnectionTimeout
}
b := &BoltDB{
client: db,
path: endpoints[0],
boltBucket: []byte(options.Bucket),
timeout: transientTimeout,
timeout: timeout,
PersistConnection: options.PersistConnection,
}