aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/buffer/bufmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/storage/buffer/bufmgr.c')
-rw-r--r--src/backend/storage/buffer/bufmgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index a6aeecdf534..4415ba648ae 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -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,