You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
151351: kvserver: remove `ApplyImpact` from `AllocationOp` r=sumeerbhola a=wenyihu6
Epic: CRDB-25222
Release note: none
---
**kvserver: update local store pool directly with AllocationChangeReplicasOp**
Previously, `change.Op.ApplyImpact` was used to update the replicateQueue's
local store pool state after a successful change replica call to reflect the
result of applying the operation. But in practice only
`AllocationChangeReplicasOp` used it - other ops update the store pool directly.
This commit updates `AllocationChangeReplicasOp` to also update the local store
pool directly after a successful `repl.changeReplicasImpl`.
In a follow-up, we'll remove `ApplyImpact` from the `AllocationOp` interface
entirely, since it adds an unnecessary layer of indirection without providing
much value.
---
**kvserver: remove `ApplyImpact` from `AllocationOp`**
This commit removes `ApplyImpact` from the `AllocationOp` interface entirely,
since it adds an unnecessary layer of indirection without providing much value.
Co-authored-by: wenyihu6 <[email protected]>
0 commit comments