Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit840b3b5

Browse files
committed
Fix private struct field name to match the code using it.
Commit8720a15 added the wrong name.Nazir Bilal YavuzDiscussion:https://postgr.es/m/20240720181405.5a.nmisch@google.com
1 parent3937cad commit840b3b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ typedef struct SMgrSortArray
143143
structcopy_storage_using_buffer_read_stream_private
144144
{
145145
BlockNumberblocknum;
146-
BlockNumberlast_block;
146+
BlockNumbernblocks;
147147
};
148148

149149
/*
@@ -157,7 +157,7 @@ copy_storage_using_buffer_read_stream_next_block(ReadStream *stream,
157157
{
158158
structcopy_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
returnp->blocknum++;
162162

163163
returnInvalidBlockNumber;
@@ -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,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp