-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spanconfig: replace roachpb.SpanConfigEntry in package spanconfig
This patch removes the usage of roachpb.SpanConfigEntry from the spanconfig package. Going forward, we'll only use roachpb.SpanConfigEntry in RPCs. We want to decouple types that we use inside the package with RPCs in preperation for system span configurations. We instead introduce a new spanconfig.Record type to tie together a spanconfig.Target and a spanconfig.Record. For now, we only allow targeting spans. Once we introduce system span configurations, we'll make be able to make room for system targets as well. System targets will allow tenants to target their entire keyspace and the host tenant to target particular secondary tenants/the entire cluster. Crucially, spanconfig.Target contains encoding and decoding methods which we make use of when writing to and reading from system.span_configurations. Ripping out roachpb.SpanConfigEntry ended up touching most components in the package. Release note: None
- Loading branch information
1 parent
c9168d1
commit d988d3b
Showing
28 changed files
with
833 additions
and
532 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.