mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -490,6 +490,7 @@ collect_visibility_data(Oid relid, bool include_pd)
|
|||||||
BlockNumber blkno;
|
BlockNumber blkno;
|
||||||
Buffer vmbuffer = InvalidBuffer;
|
Buffer vmbuffer = InvalidBuffer;
|
||||||
BufferAccessStrategy bstrategy = GetAccessStrategy(BAS_BULKREAD);
|
BufferAccessStrategy bstrategy = GetAccessStrategy(BAS_BULKREAD);
|
||||||
|
BlockRangeReadStreamPrivate p;
|
||||||
ReadStream *stream = NULL;
|
ReadStream *stream = NULL;
|
||||||
|
|
||||||
rel = relation_open(relid, AccessShareLock);
|
rel = relation_open(relid, AccessShareLock);
|
||||||
@ -505,8 +506,6 @@ collect_visibility_data(Oid relid, bool include_pd)
|
|||||||
/* Create a stream if reading main fork. */
|
/* Create a stream if reading main fork. */
|
||||||
if (include_pd)
|
if (include_pd)
|
||||||
{
|
{
|
||||||
BlockRangeReadStreamPrivate p;
|
|
||||||
|
|
||||||
p.current_blocknum = 0;
|
p.current_blocknum = 0;
|
||||||
p.last_exclusive = nblocks;
|
p.last_exclusive = nblocks;
|
||||||
stream = read_stream_begin_relation(READ_STREAM_FULL,
|
stream = read_stream_begin_relation(READ_STREAM_FULL,
|
||||||
|
Reference in New Issue
Block a user