Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard229 committed Aug 20, 2024
1 parent f3749fb commit 01023ef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/backend/postmaster/postmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ static int
ServerLoop(void)
{
fd_set readmask, readmask_base;
int nSockets, nSockets_base;
int nSockets, nSockets_base = 0;
time_t last_lockfile_recheck_time,
last_touch_time;

Expand Down
2 changes: 0 additions & 2 deletions src/backend/storage/buffer/polar_bufmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,6 @@ polar_bulk_read_buffer_common(Relation reln, char relpersistence, ForkNumber for
*/
for (index = actual_bulk_io_count - 1; index >= 0 ; index--)
{
BlockNumber blockNum = firstBlockNum + index;

bufHdr = polar_bulk_io_in_progress_buf[index];
bufBlock = isLocalBuf ? LocalBufHdrGetBlock(bufHdr) : BufHdrGetBlock(bufHdr);

Expand Down
1 change: 0 additions & 1 deletion src/backend/utils/misc/guc_px.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ int px_wait_lock_timeout = 0;
/* POLAR */
static bool px_check_dispatch_log_stats(bool *newval, void **extra, GucSource source);
static bool px_check_scan_unit_size(int *newval, void **extra, GucSource source);
static const char* px_show_scan_unit_size(void);
static bool px_check_ignore_function(char **newval, void **extra, GucSource source);
static void px_assign_ignore_function(const char *newval, void *extra);
static int px_guc_array_compare(const void *a, const void *b);
Expand Down

0 comments on commit 01023ef

Please sign in to comment.