mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #17356 from MadhavJivrajani/fix-out-of-index-error
tests/robustness: fix out of index panic in model replay
This commit is contained in:
commit
13b48947d4
@ -73,7 +73,7 @@ func (r *EtcdReplay) next() (request EtcdRequest, revision int64, index int) {
|
||||
revision = r.eventHistory[r.eventHistoryIndex].Revision
|
||||
index = r.eventHistoryIndex
|
||||
operations := []EtcdOperation{}
|
||||
for r.eventHistory[index].Revision == revision {
|
||||
for index < len(r.eventHistory) && r.eventHistory[index].Revision == revision {
|
||||
event := r.eventHistory[index]
|
||||
switch event.Type {
|
||||
case PutOperation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user