-
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.
43782: sqlmigrations: use KV puts in namespace migration r=solongordon a=solongordon The original migration for the namespace table used SQL statements to move data from the deprecated table to the new one. However, the namespace table is normally written to and read from using raw KV operations, not SQL. This discrepancy caused some issues when the new rows were scanned by functions like GetAllDatabaseDescriptorIDs, specifically because the migration created "sentinel" rows which were not normally present. I rewrote the migration to use KV puts rather than SQL. Fixes #43616 Release note: None Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
- Loading branch information
Showing
2 changed files
with
50 additions
and
52 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