@@ -696,7 +696,7 @@ func (r *Replica) applySnapshotRaftMuLocked(
696
696
// The necessary on-disk state is read. Update the in-memory Replica and Store
697
697
// state now.
698
698
699
- subPHs , err := r .clearSubsumedReplicaInMemoryData (ctx , subsumedRepls , mergedTombstoneReplicaID )
699
+ subPHs , err := r .clearSubsumedReplicaInMemoryData (ctx , subsumedRepls )
700
700
if err != nil {
701
701
log .Fatalf (ctx , "failed to clear in-memory data of subsumed replicas while applying snapshot: %+v" , err )
702
702
}
@@ -796,7 +796,7 @@ func (r *Replica) applySnapshotRaftMuLocked(
796
796
// replicas. This method requires that each of the subsumed replicas raftMu is
797
797
// held.
798
798
func (r * Replica ) clearSubsumedReplicaInMemoryData (
799
- ctx context.Context , subsumedRepls []* Replica , subsumedNextReplicaID roachpb. ReplicaID ,
799
+ ctx context.Context , subsumedRepls []* Replica ,
800
800
) ([]* ReplicaPlaceholder , error ) {
801
801
//
802
802
var phs []* ReplicaPlaceholder
@@ -808,7 +808,7 @@ func (r *Replica) clearSubsumedReplicaInMemoryData(
808
808
// allowed in (perhaps not involving any of the RangeIDs known to the merge
809
809
// but still touching its keyspace) and causing corruption.
810
810
ph , err := r .store .removeInitializedReplicaRaftMuLocked (
811
- ctx , sr , subsumedNextReplicaID , "subsumed by snapshot" ,
811
+ ctx , sr , mergedTombstoneReplicaID , "subsumed by snapshot" ,
812
812
RemoveOptions {
813
813
// The data was already destroyed by clearSubsumedReplicaDiskData.
814
814
DestroyData : false ,
0 commit comments