File tree 2 files changed +5
-5
lines changed
src/backend/storage/buffer 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -955,7 +955,7 @@ ExtendBufferedRelTo(BufferManagerRelation bmr,
955
955
current_size = first_block + extended_by ;
956
956
Assert (num_pages != 0 || current_size >= extend_to );
957
957
958
- for (int i = 0 ; i < extended_by ; i ++ )
958
+ for (uint32 i = 0 ; i < extended_by ; i ++ )
959
959
{
960
960
if (first_block + i != extend_to - 1 )
961
961
ReleaseBuffer (buffers [i ]);
@@ -1938,7 +1938,7 @@ ExtendBufferedRelShared(BufferManagerRelation bmr,
1938
1938
* This needs to happen before we extend the relation, because as soon as
1939
1939
* we do, other backends can start to read in those pages.
1940
1940
*/
1941
- for (int i = 0 ; i < extend_by ; i ++ )
1941
+ for (uint32 i = 0 ; i < extend_by ; i ++ )
1942
1942
{
1943
1943
Buffer victim_buf = buffers [i ];
1944
1944
BufferDesc * victim_buf_hdr = GetBufferDescriptor (victim_buf - 1 );
@@ -2070,7 +2070,7 @@ ExtendBufferedRelShared(BufferManagerRelation bmr,
2070
2070
io_start , extend_by );
2071
2071
2072
2072
/* Set BM_VALID, terminate IO, and wake up any waiters */
2073
- for (int i = 0 ; i < extend_by ; i ++ )
2073
+ for (uint32 i = 0 ; i < extend_by ; i ++ )
2074
2074
{
2075
2075
Buffer buf = buffers [i ];
2076
2076
BufferDesc * buf_hdr = GetBufferDescriptor (buf - 1 );
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
360
360
relpath (bmr .smgr -> smgr_rlocator , fork ),
361
361
MaxBlockNumber )));
362
362
363
- for (int i = 0 ; i < extend_by ; i ++ )
363
+ for (uint32 i = 0 ; i < extend_by ; i ++ )
364
364
{
365
365
int victim_buf_id ;
366
366
BufferDesc * victim_buf_hdr ;
@@ -416,7 +416,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
416
416
pgstat_count_io_op_time (IOOBJECT_TEMP_RELATION , IOCONTEXT_NORMAL , IOOP_EXTEND ,
417
417
io_start , extend_by );
418
418
419
- for (int i = 0 ; i < extend_by ; i ++ )
419
+ for (uint32 i = 0 ; i < extend_by ; i ++ )
420
420
{
421
421
Buffer buf = buffers [i ];
422
422
BufferDesc * buf_hdr ;
You can’t perform that action at this time.
0 commit comments