-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backupccl: drop temp system database on failed restore
Previously, if a restore failed during execution we would not cleanup the temproary system db descriptor that we create during a cluster restore. A `SHOW DATABASES` after the failed restore would show the `crdb_temp_system` database as well. This change adds logic to drop the database in the OnFailOrCancel hook of the retore job. Fixes: #70324 Release note: None
- Loading branch information
1 parent
c6f08db
commit 2b4c072
Showing
2 changed files
with
66 additions
and
6 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