-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault when setting chunk replica identity
The problem occurs because `currentEventTriggerState->currentCommand` is not set up since `AlterTableInternal` is called without calling `EventTriggerAlterTableStart`. This is because `AlterTableInternal` is called as part of a different statement, which do not "prepare" for an `AlterTable` correctly. Fixed it by properly adding the proper start and end calls for the event trigger on the underlying `AlterTable` to set the replica identity for a new created chunk introduced by #5515. Fixes #7406
- Loading branch information
1 parent
7725448
commit 2951ac2
Showing
3 changed files
with
76 additions
and
0 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