Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c61fd8

Browse files
committed
Fix stack variable scope from previous commit.
The defect came from me, not from that commit's credited author. Per buildfarm members olingo and grassquit. Discussion: https://postgr.es/m/20240903192030.1e@rfd.leadboat.com
1 parent ed1b1ee commit 1c61fd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_visibility/pg_visibility.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ collect_visibility_data(Oid relid, bool include_pd)
490490
BlockNumber blkno;
491491
Buffer vmbuffer = InvalidBuffer;
492492
BufferAccessStrategy bstrategy = GetAccessStrategy(BAS_BULKREAD);
493+
BlockRangeReadStreamPrivate p;
493494
ReadStream *stream = NULL;
494495

495496
rel = relation_open(relid, AccessShareLock);
@@ -505,8 +506,6 @@ collect_visibility_data(Oid relid, bool include_pd)
505506
/* Create a stream if reading main fork. */
506507
if (include_pd)
507508
{
508-
BlockRangeReadStreamPrivate p;
509-
510509
p.current_blocknum = 0;
511510
p.last_exclusive = nblocks;
512511
stream = read_stream_begin_relation(READ_STREAM_FULL,

0 commit comments

Comments
 (0)