forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: only use txnSpanRefresher.refreshedTimestamp for assertions
Related to cockroachdb#68051. This is a partial reversion of d6ec977 which downgrades the role of `txnSpanRefresher.refreshedTimestamp` back to being used as a sanity check that we don't allow incoherent refresh spans into the refresh footprint. We no longer use the field to determine where to refresh from. Instead, we use the pre-refreshed BatchRequest.Txn.ReadTimestamp to determine the lower-bound of the refresh. This avoids some awkward logic in txnSpanRefresher.SendLocked (e.g. the logic needed in b9fb236). It also avoids the kinds of issues we saw when trying to expand the use of manual refreshing in cockroachdb#68051. Release note: None.
- Loading branch information
1 parent
443f1dc
commit e0ad9a7
Showing
2 changed files
with
87 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters