Skip to content

Commit

Permalink
feat: remove check hook of polar_px_scan_unit_size
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdrivingduck authored and polardb-bot[bot] committed Mar 26, 2024
1 parent 20dcd42 commit d52e825
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/backend/utils/misc/guc_px.c
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ struct config_int ConfigureNamesInt_px[] =
},
&px_scan_unit_size,
512, 1, 1024,
px_check_scan_unit_size, NULL, px_show_scan_unit_size
px_check_scan_unit_size, NULL, NULL
},

{
Expand Down Expand Up @@ -2783,15 +2783,6 @@ px_check_scan_unit_size(int *newval, void **extra, GucSource source)
return true;
}

static const char*
px_show_scan_unit_size(void)
{
static char nbuf[120];
snprintf(nbuf, sizeof(nbuf), "scan_unit_size: %d, scan_unit_bit: %d",
px_scan_unit_size, px_scan_unit_bit);
return nbuf;
}

static bool
px_check_ignore_function(char **newval, void **extra, GucSource source)
{
Expand Down

0 comments on commit d52e825

Please sign in to comment.