mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix private struct field name to match the code using it.
Commit 8720a15e9ab121e49174d889eaeafae8ac89de7b added the wrong name. Nazir Bilal Yavuz Discussion: https://postgr.es/m/20240720181405.5a.nmisch@google.com
This commit is contained in:
parent
3937cadfd4
commit
840b3b5b4e
@ -143,7 +143,7 @@ typedef struct SMgrSortArray
|
||||
struct copy_storage_using_buffer_read_stream_private
|
||||
{
|
||||
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;
|
||||
|
||||
if (p->blocknum < p->last_block)
|
||||
if (p->blocknum < p->nblocks)
|
||||
return p->blocknum++;
|
||||
|
||||
return InvalidBlockNumber;
|
||||
@ -4746,7 +4746,7 @@ RelationCopyStorageUsingBuffer(RelFileLocator srclocator,
|
||||
|
||||
/* Initalize streaming read */
|
||||
p.blocknum = 0;
|
||||
p.last_block = nblocks;
|
||||
p.nblocks = nblocks;
|
||||
src_smgr = smgropen(srclocator, INVALID_PROC_NUMBER);
|
||||
src_stream = read_stream_begin_smgr_relation(READ_STREAM_FULL,
|
||||
bstrategy_src,
|
||||
|
Loading…
x
Reference in New Issue
Block a user