Skip to content

Commit fa39df7

Browse files
committed
kvserver: rename a field
1 parent 11a1e33 commit fa39df7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/kv/kvserver/replica_raftstorage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ func (r *Replica) applySnapshotRaftMuLocked(
553553
if err != nil {
554554
return err
555555
}
556-
clearedSpans = append(clearedSpans, prepResult.clearedSpan)
556+
clearedSpans = append(clearedSpans, prepResult.clearedUnreplicatedSpan)
557557
clearedSpans = append(clearedSpans, prepResult.clearedSubsumedSpans...)
558558

559559
// Drop the entry cache before ingestion, like a real truncation would.

pkg/kv/kvserver/snapshot_apply_prepare.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ type prepareSnapApplyInput struct {
3939
// preparedSnapApply contains the results of preparing the snapshot for ingestion.
4040
// TODO: remove
4141
type preparedSnapApply struct {
42-
clearedSpan roachpb.Span
43-
clearedSubsumedSpans []roachpb.Span
42+
clearedUnreplicatedSpan roachpb.Span
43+
clearedSubsumedSpans []roachpb.Span
4444
}
4545

4646
// prepareSnapApply writes the unreplicated SST for the snapshot and clears disk data for subsumed replicas.
@@ -69,8 +69,8 @@ func prepareSnapApply(ctx context.Context, input prepareSnapApplyInput) (prepare
6969
}
7070

7171
return preparedSnapApply{
72-
clearedSpan: clearedSpan,
73-
clearedSubsumedSpans: clearedSubsumedSpans,
72+
clearedUnreplicatedSpan: clearedSpan,
73+
clearedSubsumedSpans: clearedSubsumedSpans,
7474
}, nil
7575
}
7676

0 commit comments

Comments
 (0)