mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
commit
5d30dccdaa
@ -195,14 +195,14 @@ func TestDataDriven(t *testing.T) {
|
|||||||
return ll
|
return ll
|
||||||
}
|
}
|
||||||
for id := range c {
|
for id := range c {
|
||||||
idx, _ := l.AckedIndex(id)
|
iidx, _ := l.AckedIndex(id)
|
||||||
if idx > idx && idx > 0 {
|
if idx > iidx && iidx > 0 {
|
||||||
// If the committed index was definitely above the currently
|
// If the committed index was definitely above the currently
|
||||||
// inspected idx, the result shouldn't change if we lower it
|
// inspected idx, the result shouldn't change if we lower it
|
||||||
// further.
|
// further.
|
||||||
lo := overlay(c, l, id, idx-1)
|
lo := overlay(c, l, id, iidx-1)
|
||||||
if aIdx := c.CommittedIndex(lo); aIdx != idx {
|
if aIdx := c.CommittedIndex(lo); aIdx != idx {
|
||||||
fmt.Fprintf(&buf, "%s <-- overlaying %d->%d", aIdx, id, idx)
|
fmt.Fprintf(&buf, "%s <-- overlaying %d->%d", aIdx, id, iidx)
|
||||||
}
|
}
|
||||||
lo = overlay(c, l, id, 0)
|
lo = overlay(c, l, id, 0)
|
||||||
if aIdx := c.CommittedIndex(lo); aIdx != idx {
|
if aIdx := c.CommittedIndex(lo); aIdx != idx {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user