forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: fix bug in database and schema restore cleanup
This change fixes a bug where during restore cleanup we would delete the database descriptor, and namespace entry only to add the descriptor entry back when clearing the schema references in the database desc slice. We fix this by first clearing the schema reference in the db descroptor slice, and then going through the motions of dropping the database descriptor. Fixes: cockroachdb#72248 Release note (bug fix): Fix bug in database and schema restore cleanup that results in a dangling descriptor entry on job failure.
- Loading branch information
1 parent
0331536
commit 52edf03
Showing
2 changed files
with
74 additions
and
28 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