diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-09-19 09:46:01 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-09-19 09:46:01 +0200 |
commit | 9847ca2c79bef27b9bab44b2243fe951b7c62b36 (patch) | |
tree | 95ac7a76506693391c49236a6831f4f7e2e4bf0c /src/backend/storage/buffer/localbuf.c | |
parent | 78a33bba4c634afc3c67dddeb359b5ce872a0b04 (diff) | |
download | postgresql-9847ca2c79bef27b9bab44b2243fe951b7c62b36.tar.gz postgresql-9847ca2c79bef27b9bab44b2243fe951b7c62b36.zip |
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
Diffstat (limited to 'src/backend/storage/buffer/localbuf.c')
-rw-r--r-- | src/backend/storage/buffer/localbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c index 567b8d15ef0..9f20dca1212 100644 --- a/src/backend/storage/buffer/localbuf.c +++ b/src/backend/storage/buffer/localbuf.c @@ -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; |