From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Use consistent type for pgaio_io_get_id() result |
Date: | 2025-08-21 17:55:29 |
Message-ID: | E1up9VY-0010Se-1M@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Use consistent type for pgaio_io_get_id() result
The result of pgaio_io_get_id() was being assigned to a mix of int and
uint32 variables. This fixes it to use int consistently, which seems
the most correct. Also change the queue empty special value in
method_worker.c to -1 from UINT32_MAX.
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://www.postgresql.org/message-id/70c784b3-f60b-4652-b8a6-75e5f051243e%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/47932f3cdc4c221dbd9207cb21e63c862fedd189
Modified Files
--------------
src/backend/storage/aio/aio_funcs.c | 4 ++--
src/backend/storage/aio/method_worker.c | 14 +++++++-------
2 files changed, 9 insertions(+), 9 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2025-08-22 00:07:59 | pgsql: Ignore temporary relations in RelidByRelfilenumber() |
Previous Message | Fujii Masao | 2025-08-21 13:21:11 | pgsql: Disallow server start with sync_replication_slots = on and wal_l |