Merge pull request #3991 from citusdata/fix/remove-level-assert

Remove executor/planner level asserts in abort handler
pull/3976/head
Marco Slot 2020-07-14 22:43:24 +02:00 committed by GitHub
commit e09860e9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -316,19 +316,11 @@ CoordinatedTransactionCallback(XactEvent event, void *arg)
ResetGlobalVariables();
/*
* Getting here without ExecutorLevel 0 is a bug, however it is such a big
* problem that will persist between reuse of the backend we still assign 0 in
* production deploys, but during development and tests we want to crash.
* We reset these mainly for posterity. The only way we would normally
* get here with ExecutorLevel or PlannerLevel > 0 is during a fatal
* error when the process is about to end.
*/
Assert(ExecutorLevel == 0);
ExecutorLevel = 0;
/*
* Getting here without PlannerLevel 0 is a bug, however it is such a big
* problem that will persist between reuse of the backend we still assign 0 in
* production deploys, but during development and tests we want to crash.
*/
Assert(PlannerLevel == 0);
PlannerLevel = 0;
/*