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.
spanconfig,protectedts: introduce the
ProtectedTSReader
interface
This patch introduces the `spanconfig.ProtectedTSReader` interface. It is inteded to replace the `protectedts.Cache` as KVs integration point for querying protectedTS metadata in the v2 of the protectedTS subsystem. For now, the `protectedts.Cache` is the only implementor of it. We will have the `KVSubscriber` implement it as well once we start shipping protected timestamp information on span configurations. The `ProtectedTSReader` interface is also inteded to serve as an adapter interface between v1 and v2 of the PTS subsystem. In particular, for v21.2, we will consult both the `protectedts.Cache` and `KVSubscriber` for PTS information. The logic here will be gated behind a call to `GetProtectionTimetamps`, which is the only method this interface provides. Release note: None Release justification: low risk, high benefit changes to existing functionality.
- Loading branch information
1 parent
93b815f
commit 365521a
Showing
18 changed files
with
486 additions
and
203 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
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
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
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
Oops, something went wrong.