File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/backend/storage/buffer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ typedef struct SMgrSortArray
143143struct copy_storage_using_buffer_read_stream_private
144144{
145145 BlockNumber blocknum ;
146- BlockNumber last_block ;
146+ BlockNumber nblocks ;
147147};
148148
149149/*
@@ -157,7 +157,7 @@ copy_storage_using_buffer_read_stream_next_block(ReadStream *stream,
157157{
158158 struct copy_storage_using_buffer_read_stream_private * p = callback_private_data ;
159159
160- if (p -> blocknum < p -> last_block )
160+ if (p -> blocknum < p -> nblocks )
161161 return p -> blocknum ++ ;
162162
163163 return InvalidBlockNumber ;
@@ -4746,7 +4746,7 @@ RelationCopyStorageUsingBuffer(RelFileLocator srclocator,
47464746
47474747 /* Initalize streaming read */
47484748 p .blocknum = 0 ;
4749- p .last_block = nblocks ;
4749+ p .nblocks = nblocks ;
47504750 src_smgr = smgropen (srclocator , INVALID_PROC_NUMBER );
47514751 src_stream = read_stream_begin_smgr_relation (READ_STREAM_FULL ,
47524752 bstrategy_src ,
You can’t perform that action at this time.
0 commit comments