Explorar el Código

Update libkv @1d84310

Signed-off-by: Alessandro Boch <aboch@docker.com>
Alessandro Boch hace 8 años
padre
commit
e755b439fa

+ 13 - 14
libnetwork/Godeps/Godeps.json

@@ -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",

+ 2 - 2
libnetwork/Godeps/_workspace/src/github.com/docker/libkv/.travis.yml

@@ -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:

+ 0 - 6
libnetwork/Godeps/_workspace/src/github.com/docker/libkv/MAINTAINERS

@@ -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"

+ 6 - 1
libnetwork/Godeps/_workspace/src/github.com/docker/libkv/store/boltdb/boltdb.go

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

+ 1 - 1
libnetwork/Godeps/_workspace/src/github.com/docker/libkv/store/zookeeper/zookeeper.go

@@ -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