Skip to content

Commit 65e1ef5

Browse files
committed
kvserver: rename constructMMAUpdate to constructRangeMsgReplicas
This commit renames constructMMAUpdate to constructRangeMsgReplicas for clarity.
1 parent 3a7ab11 commit 65e1ef5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kv/kvserver/mma_replica_store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ func (mr *mmaReplica) isLeaseholderWithDescAndConfig(
124124
return
125125
}
126126

127-
// constructMMAUpdate constructs the mmaprototype.StoreIDAndReplicaState from
127+
// constructRangeMsgReplicas constructs the mmaprototype.StoreIDAndReplicaState from
128128
// the range descriptor. This method is only valid when called on the
129129
// leaseholder replica.
130-
func constructMMAUpdate(
130+
func constructRangeMsgReplicas(
131131
desc *roachpb.RangeDescriptor, raftStatus *raft.Status, leaseholderReplicaStoreID roachpb.StoreID,
132132
) []mmaprototype.StoreIDAndReplicaState {
133133
if raftStatus == nil && buildutil.CrdbTestBuild {
@@ -208,7 +208,7 @@ func (mr *mmaReplica) tryConstructMMARangeMsg(
208208
}
209209
}
210210
// At this point, we know r is the leaseholder replica.
211-
replicas := constructMMAUpdate(desc, raftStatus, r.StoreID() /*leaseholderReplicaStoreID*/)
211+
replicas := constructRangeMsgReplicas(desc, raftStatus, r.StoreID() /*leaseholderReplicaStoreID*/)
212212
rLoad := mr.mmaRangeLoad()
213213
if mr.maybePromiseSpanConfigUpdate() {
214214
return true, false, mmaprototype.RangeMsg{

0 commit comments

Comments
 (0)