-
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.
clusterversion: cockroach versions cleanup
This commit cleans up the code and constants in `cockroach_versions.go`: - we separate out the "dev offset" code and improve the documentation; - we replace the key-to-version slice with a table (array). This makes the declaration much cleaner and makes the lookup easier. - we replace `ByKey()` with a method, to make the call site less messy; e.g. `clusterversion.ByKey(clusterversion.V23_2)` becomes `clusterversion.V23_2.Version()`; - we deprecate `BinaryMinSupportedVersionKey` in favor of `MinSupported`; - we deprecate `BinaryVersionKey` in favor of `Latest`; - we remove `roachpb.Version` "constants" in favor of using the `Version()` method. Informs: #112629 Release note: None
- Loading branch information
1 parent
dd2628e
commit 5cce778
Showing
15 changed files
with
352 additions
and
668 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
Oops, something went wrong.