forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release-19.2: sql: repair bogus DropJobID on PUBLIC tables in drainNames
In cockroachdb#50587 we discovered that TRUNCATE would leave a DropJobID on both the new and old tables. This situation was rectified in cockroachdb#50714. In most cases that job ID is ignored. However, in release-19.2 and earlier, it would prevent RENAME operations from completing. To deal with this, we repair the descriptor by removing the DropJobID. We also, for additional protection, prevent the failure to update the job from preventing progress. Release note (bug fix): Fixed a bug which could prevent previously TRUNCATED tables from being renamed.
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
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