Skip to content

Commit

Permalink
[raft] fix balance lease count bug (#7995)
Browse files Browse the repository at this point in the history
  • Loading branch information
luluz66 authored Dec 3, 2024
1 parent 5509d4c commit 25a4b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enterprise/server/raft/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func (rq *Queue) rebalanceLease(rd *rfpb.RangeDescriptor, localRepl IReplica) *c
return nil
}
rq.log.Debugf("found rebalance lease op for range %d: %s -> %s", rd.GetRangeId(), op.from.nhid, op.to.nhid)
replicaID, err := findReplicaWithNHID(rd, op.from.usage.GetNode().GetNhid())
replicaID, err := findReplicaWithNHID(rd, op.to.usage.GetNode().GetNhid())
if err != nil {
rq.log.Errorf("failed to rebalance lease: %s", err)
return nil
Expand Down

0 comments on commit 25a4b30

Please sign in to comment.