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
147218: kvserver: rm unnecessary ReplicaID write r=arulajmani,tbg a=pav-kv
In `splitPreApply`, the common case is that the replica exists because it was created by `acquireSplitLock` which calls `getOrCreateReplica`, which ultimately writes the `ReplicaID`. Alternatively, this replica could have been brought to existence by an earlier `getOrCreateReplica`. We don't need to duplicate the `ReplicaID` write in this case.
Another way to understand this: a replica **always** goes through the uninitialized state before being initialized. We already write `ReplicaID` when going through the uninitialized state.
Epic: CRDB-46488
Co-authored-by: Pavel Kalinnikov <[email protected]>
0 commit comments