-
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.
sqlmigrations: use KV puts in namespace migration
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
- Loading branch information
1 parent
8214ec0
commit f8faf89
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