mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Standardize type of extend_by counter
The counter of extend_by loops is mixed int and uint32. Fix by
standardizing from int to uint32, to match the extend_by variable.
Fixup for 31966b151e
.
Author: Ranier Vilela <ranier.vf@gmail.com>
Reviewed-by: Gurjeet Singh <gurjeet@singh.im>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAEudQAqHG-JP-YnG54ftL_b7v6-57rMKwET_MSvEoen0UHuPig@mail.gmail.com
This commit is contained in:
@ -360,7 +360,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
|
||||
relpath(bmr.smgr->smgr_rlocator, fork),
|
||||
MaxBlockNumber)));
|
||||
|
||||
for (int i = 0; i < extend_by; i++)
|
||||
for (uint32 i = 0; i < extend_by; i++)
|
||||
{
|
||||
int victim_buf_id;
|
||||
BufferDesc *victim_buf_hdr;
|
||||
@ -416,7 +416,7 @@ ExtendBufferedRelLocal(BufferManagerRelation bmr,
|
||||
pgstat_count_io_op_time(IOOBJECT_TEMP_RELATION, IOCONTEXT_NORMAL, IOOP_EXTEND,
|
||||
io_start, extend_by);
|
||||
|
||||
for (int i = 0; i < extend_by; i++)
|
||||
for (uint32 i = 0; i < extend_by; i++)
|
||||
{
|
||||
Buffer buf = buffers[i];
|
||||
BufferDesc *buf_hdr;
|
||||
|
Reference in New Issue
Block a user