Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1846. fix core when reset non exist guc
Browse files Browse the repository at this point in the history
  • Loading branch information
ztao1987 committed Sep 1, 2022
1 parent 74c261d commit 357a2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/misc/guc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11800,9 +11800,9 @@ bool ResetPGVariable(const char *name) {
shouldDispatch = true;
} else {
struct config_generic *record = find_option(name, ERROR);
if (record->flags & (GUC_GPDB_ADDOPT | GUC_NEW_DISP)) shouldDispatch = true;
set_config_option(name, NULL, (superuser() ? PGC_SUSET : PGC_USERSET),
PGC_S_SESSION, false, true);
if (record->flags & (GUC_GPDB_ADDOPT | GUC_NEW_DISP)) shouldDispatch = true;
}
return shouldDispatch;
}
Expand Down

0 comments on commit 357a2c5

Please sign in to comment.