1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update libkv @1d84310

Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
Alessandro Boch 2016-11-08 18:37:29 -08:00
parent 1b8698e148
commit e755b439fa
5 changed files with 22 additions and 24 deletions

View file

@ -1,7 +1,6 @@
{
"ImportPath": "github.com/docker/libnetwork",
"GoVersion": "go1.5",
"GodepVersion": "v74",
"GoVersion": "go1.7",
"Packages": [
"./..."
],
@ -218,33 +217,33 @@
},
{
"ImportPath": "github.com/docker/libkv",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/docker/libkv/store",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/docker/libkv/store/boltdb",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/docker/libkv/store/consul",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/docker/libkv/store/etcd",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/docker/libkv/store/zookeeper",
"Comment": "v0.2.0-1-g7283ef2",
"Rev": "7283ef27ed32fe267388510a91709b307bb9942c"
"Comment": "v0.2.1-5-g1d84310",
"Rev": "1d8431073ae03cdaedb198a89722f3aab6d418ef"
},
{
"ImportPath": "github.com/godbus/dbus",

View file

@ -1,7 +1,7 @@
language: go
go:
- 1.5.3
- 1.7.1
# let us have speedy Docker-based Travis workers
sudo: false
@ -16,7 +16,7 @@ before_install:
before_script:
- script/travis_consul.sh 0.6.3
- script/travis_etcd.sh 2.2.5
- script/travis_etcd.sh 3.0.0
- script/travis_zk.sh 3.5.1-alpha
script:

View file

@ -11,7 +11,6 @@
[Org]
[Org."Core maintainers"]
people = [
"abronan",
"aluzzardi",
"sanimej",
"vieux",
@ -25,11 +24,6 @@
# ADD YOURSELF HERE IN ALPHABETICAL ORDER
[people.abronan]
Name = "Alexandre Beslic"
Email = "abronan@docker.com"
GitHub = "abronan"
[people.aluzzardi]
Name = "Andrea Luzzardi"
Email = "al@docker.com"

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,
}

View file

@ -252,7 +252,7 @@ func (s *Zookeeper) List(directory string) ([]*store.KVPair, error) {
pair, err := s.Get(strings.TrimSuffix(directory, "/") + s.normalize(key))
if err != nil {
// If node is not found: List is out of date, retry
if err == zk.ErrNoNode {
if err == store.ErrKeyNotFound {
return s.List(directory)
}
return nil, err