mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #14390 from Abirdcfly/main
chore: remove duplicate word in comments
This commit is contained in:
commit
eb25e433cd
@ -216,7 +216,7 @@ func TestLogMaybeAppend(t *testing.T) {
|
||||
lastterm, lastindex, lastindex + 2, []pb.Entry{{Index: lastindex + 1, Term: 4}, {Index: lastindex + 2, Term: 4}},
|
||||
lastindex + 2, true, lastindex + 2, false,
|
||||
},
|
||||
// match with the the entry in the middle
|
||||
// match with the entry in the middle
|
||||
{
|
||||
lastterm - 1, lastindex - 1, lastindex, []pb.Entry{{Index: lastindex, Term: 4}},
|
||||
lastindex, true, lastindex, false,
|
||||
|
@ -1691,7 +1691,7 @@ func (r *raft) switchToConfig(cfg tracker.Config, prs tracker.ProgressMap) pb.Co
|
||||
r.maybeSendAppend(id, false /* sendIfEmpty */)
|
||||
})
|
||||
}
|
||||
// If the the leadTransferee was removed or demoted, abort the leadership transfer.
|
||||
// If the leadTransferee was removed or demoted, abort the leadership transfer.
|
||||
if _, tOK := r.prs.Config.Voters.IDs()[r.leadTransferee]; !tOK && r.leadTransferee != 0 {
|
||||
r.abortLeaderTransfer()
|
||||
}
|
||||
|
@ -685,7 +685,7 @@ func TestKVRestore(t *testing.T) {
|
||||
keysBefore := readGaugeInt(keysGauge)
|
||||
s.Close()
|
||||
|
||||
// ns should recover the the previous state from backend.
|
||||
// ns should recover the previous state from backend.
|
||||
ns := NewStore(zaptest.NewLogger(t), b, &lease.FakeLessor{}, StoreConfig{})
|
||||
|
||||
if keysRestore := readGaugeInt(keysGauge); keysBefore != keysRestore {
|
||||
|
Loading…
x
Reference in New Issue
Block a user