-
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.
sql: fix namespace table name collision in backup
As part of the namespace table migration to support schemas, we changed the name in the old namespace table's descriptor from "namespace" to "namespace_deprecated". However, we only made this change for new clusters, not clusters that were migrated from 19.2. This resulted in breaking backup on migrated clusters, since it expects that table names are unique. I supplemented our namespace table migration to retrieve the deprecated namespace table's descriptor and update its name as desired. I also updated the existing migration to use Puts rather than CPuts since it should be fine to overwrite the existing KVs. Fixes #43979 Release note: None
- Loading branch information
1 parent
5853366
commit d818f1f
Showing
2 changed files
with
70 additions
and
10 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