Skip to content

Commit

Permalink
kvcoord: Use correct timestamp when restarting range
Browse files Browse the repository at this point in the history
Recent changes to rangefeed library (cockroachdb#97957) introduced
a silly bug (incorrect code completion/copy paste).

Use correct timestamp when resuming range feed.

Issue: None
Epic: None
Release note: None
  • Loading branch information
Yevgeniy Miretskiy committed Mar 17, 2023
1 parent 85c6e38 commit d9a6fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvclient/kvcoord/dist_sender_rangefeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ func (ds *DistSender) partialRangeFeed(
token = rangecache.EvictionToken{}
}
if errInfo.resolveSpan {
return divideSpanOnRangeBoundaries(ctx, ds, rs, active.StartAfter, sendSingleRangeInfo(rangeCh))
return divideSpanOnRangeBoundaries(ctx, ds, rs, startAfter, sendSingleRangeInfo(rangeCh))
}
}
return ctx.Err()
Expand Down

0 comments on commit d9a6fba

Please sign in to comment.