File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2901,7 +2901,7 @@ func TestRecvMsgUnreachable(t *testing.T) {
2901
2901
// set node 2 to state replicate
2902
2902
r .trk .Progress [2 ].Match = 3
2903
2903
r .trk .Progress [2 ].BecomeReplicate ()
2904
- r .trk .Progress [2 ].OptimisticUpdate ( 5 )
2904
+ r .trk .Progress [2 ].Next = 6
2905
2905
2906
2906
r .Step (pb.Message {From : 2 , To : 1 , Type : pb .MsgUnreachable })
2907
2907
Original file line number Diff line number Diff line change @@ -190,10 +190,6 @@ func (pr *Progress) MaybeUpdate(n uint64) bool {
190
190
return updated
191
191
}
192
192
193
- // OptimisticUpdate signals that appends all the way up to and including index n
194
- // are in-flight. As a result, Next is increased to n+1.
195
- func (pr * Progress ) OptimisticUpdate (n uint64 ) { pr .Next = n + 1 }
196
-
197
193
// MaybeDecrTo adjusts the Progress to the receipt of a MsgApp rejection. The
198
194
// arguments are the index of the append message rejected by the follower, and
199
195
// the hint that we want to decrease to.
You can’t perform that action at this time.
0 commit comments