-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix behavior when swapping tables (#7498)
A DDL sequence like ```sql CREATE TABLE t ...; CREATE TABLE t_tmp ...; ALTER TABLE t RENAME TO t_bak; ALTER TABLE t_tmp RENAME TO t; ``` yields to the wrong error `New value for key 't' must not have a content ID`. The root-cause is an incomplete check in `CommitImpl.commitAddPut()` that does not take the `CommitOp.Action.exists()` flag into account, letting the "new content must not have a content ID"-assertion firing. Fixes #7492
- Loading branch information
Showing
4 changed files
with
175 additions
and
2 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
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