Vendor update for dsync, fixing major go routine leak issue. (#3308)

This commit is contained in:
Karthic Rao
2016-11-22 00:17:48 +05:30
committed by Harshavardhana
parent aa98702908
commit 273228fafa
4 changed files with 7 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ This package was developed for the distributed server version of [Minio Object S
For [minio](https://minio.io/) the distributed version is started as follows (for a 6-server system):
```
$ minio server server1/disk server2/disk server3/disk server4/disk server5/disk server6/disk
$ minio server server1:/disk server2:/disk server3:/disk server4:/disk server5:/disk server6:/disk
```
_(note that the same identical command should be run on servers `server1` through to `server6`)_

View File

@@ -230,6 +230,7 @@ func lock(clnts []RPC, locks *[]string, lockName string, isReadLock bool) bool {
}
if done {
i++
break
}
}

View File

@@ -45,8 +45,8 @@ func SetNodesWithClients(rpcClnts []RPC, rpcOwnNode int) (err error) {
// Validate if number of nodes is within allowable range.
if dnodeCount != 0 {
return errors.New("Cannot reinitialize dsync package")
} else if len(rpcClnts) < 4 {
return errors.New("Dsync not designed for less than 4 nodes")
} else if len(rpcClnts) < 2 {
return errors.New("Dsync not designed for less than 2 nodes")
} else if len(rpcClnts) > 16 {
return errors.New("Dsync not designed for more than 16 nodes")
} else if len(rpcClnts)&1 == 1 {