mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Updates memberlist to get NACK penalty improvements.
This commit is contained in:
parent
90174d313c
commit
5dd60581f1
2
vendor/github.com/hashicorp/memberlist/state.go
generated
vendored
2
vendor/github.com/hashicorp/memberlist/state.go
generated
vendored
@ -400,7 +400,7 @@ func (m *Memberlist) probeNode(node *nodeState) {
|
|||||||
awarenessDelta = 0
|
awarenessDelta = 0
|
||||||
if expectedNacks > 0 {
|
if expectedNacks > 0 {
|
||||||
if nackCount := len(nackCh); nackCount < expectedNacks {
|
if nackCount := len(nackCh); nackCount < expectedNacks {
|
||||||
awarenessDelta += 2 * (expectedNacks - nackCount)
|
awarenessDelta += (expectedNacks - nackCount)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
awarenessDelta += 1
|
awarenessDelta += 1
|
||||||
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
@ -588,10 +588,10 @@
|
|||||||
"revisionTime": "2015-06-09T07:04:31Z"
|
"revisionTime": "2015-06-09T07:04:31Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "lhcYybZqKjS43O2DBjvnGn0yPPo=",
|
"checksumSHA1": "JJsKjmgNTUTaEHEEAQgb9jCGGiM=",
|
||||||
"path": "github.com/hashicorp/memberlist",
|
"path": "github.com/hashicorp/memberlist",
|
||||||
"revision": "bbad45074a20fa539bc52e62d1e5f9f8cb467e7c",
|
"revision": "6cc6075ba9fba1915fa0416f00d2b4efa9dc2262",
|
||||||
"revisionTime": "2017-03-16T23:38:26Z"
|
"revisionTime": "2017-03-17T22:24:04Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "qnlqWJYV81ENr61SZk9c65R1mDo=",
|
"checksumSHA1": "qnlqWJYV81ENr61SZk9c65R1mDo=",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user