-
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.
97221: kvpb: extract requests and errors from roachpb into new package r=yuzefovich a=yuzefovich This commit extracts a new `pkg/kv/kvpb` package out of `pkg/roachpb`. We've wanted to do this for a while, and what prompted me to do this was the desire to make the ScanResponse depend on `pkg/col/coldata`. `api.proto` and `errors.proto` files are moved into the new package while preserving the `roachpb` as their protobuf package. This required also the movement of the following: - `roachpb/gen` and `roachpb/roachpbmock` subpackages - almost all of `api.go` (except for `roachpb.UserPriority` that was moved into `roachpb/data.go`) - miscellaneous error-specific files - extracting a couple of functions from `data.go` - `method.go`. In order to keep the backwards-compatibility for errors that are sent over the wire in the mixed-version clusters, for all error types that were moved from `roachpb` to `kv/kvpb` a type migration has been registered with the `errors` library. Clearly, essentially all of these changes were done automatically. The only manual change worth mentioning was when moving `errors.go`. Namely, type conversion of `ReadWithinUncertaintyIntervalError.ObservedTimestamps` to `roachpb.observedTimestampSlice` was removed in the loop since it seems to not do anything. After running `./dev gen bazel` the proto compiler in `roachpb/BUILD.bazel` changed. I'm assuming that it is expected. Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
731 changed files
with
10,599 additions
and
9,828 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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.