mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Fix private struct field name to match the code using it.
Commit 8720a15e9a
added the wrong name.
Nazir Bilal Yavuz
Discussion: https://postgr.es/m/20240720181405.5a.nmisch@google.com
This commit is contained in:
@ -143,7 +143,7 @@ typedef struct SMgrSortArray
|
|||||||
struct copy_storage_using_buffer_read_stream_private
|
struct copy_storage_using_buffer_read_stream_private
|
||||||
{
|
{
|
||||||
BlockNumber blocknum;
|
BlockNumber blocknum;
|
||||||
BlockNumber last_block;
|
BlockNumber nblocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -157,7 +157,7 @@ copy_storage_using_buffer_read_stream_next_block(ReadStream *stream,
|
|||||||
{
|
{
|
||||||
struct copy_storage_using_buffer_read_stream_private *p = callback_private_data;
|
struct copy_storage_using_buffer_read_stream_private *p = callback_private_data;
|
||||||
|
|
||||||
if (p->blocknum < p->last_block)
|
if (p->blocknum < p->nblocks)
|
||||||
return p->blocknum++;
|
return p->blocknum++;
|
||||||
|
|
||||||
return InvalidBlockNumber;
|
return InvalidBlockNumber;
|
||||||
@ -4746,7 +4746,7 @@ RelationCopyStorageUsingBuffer(RelFileLocator srclocator,
|
|||||||
|
|
||||||
/* Initalize streaming read */
|
/* Initalize streaming read */
|
||||||
p.blocknum = 0;
|
p.blocknum = 0;
|
||||||
p.last_block = nblocks;
|
p.nblocks = nblocks;
|
||||||
src_smgr = smgropen(srclocator, INVALID_PROC_NUMBER);
|
src_smgr = smgropen(srclocator, INVALID_PROC_NUMBER);
|
||||||
src_stream = read_stream_begin_smgr_relation(READ_STREAM_FULL,
|
src_stream = read_stream_begin_smgr_relation(READ_STREAM_FULL,
|
||||||
bstrategy_src,
|
bstrategy_src,
|
||||||
|
Reference in New Issue
Block a user