Skip to content

Commit

Permalink
schemachanger: switch check to V25_1
Browse files Browse the repository at this point in the history
  • Loading branch information
RaduBerinde committed Nov 15, 2024
1 parent 519a3de commit 9f8b923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/release/update_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func generateRepositoriesFile(versions ...string) error {
return fmt.Errorf("could not download cockroach release: %w", err)
}
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("unexpected status code %d when downloading %s; consider turning off NetSkope", resp.StatusCode, url)
return fmt.Errorf("unexpected status code %d when downloading %s", resp.StatusCode, url)
}
var blob bytes.Buffer
if _, err := io.Copy(&blob, resp.Body); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ func handleGeneralColumnConversion(
// general path works. Without these rules, we encounter failures during the
// ALTER operation. To avoid this, we revert to legacy handling if not running
// on version 25.1.
// TODO(25.1): Update V24_3 here once V25_1 is defined.
if !b.EvalCtx().Settings.Version.ActiveVersion(b).IsActive(clusterversion.V24_3) {
if !b.EvalCtx().Settings.Version.ActiveVersion(b).IsActive(clusterversion.V25_1) {
panic(scerrors.NotImplementedErrorf(t,
"old active version; ALTER COLUMN TYPE requires backfill. Reverting to legacy handling"))
}
Expand Down

0 comments on commit 9f8b923

Please sign in to comment.