Use consistent type for pgaio_io_get_id() result
Peter Eisentraut <peter@eisentraut.org>
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@anarazel.de> Discussion: https://www.postgresql.org/message-id/70c784b3-f60b-4652-b8a6-75e5f051243e%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/aio/aio_funcs.c | modified | +2 −2 |
| src/backend/storage/aio/method_worker.c | modified | +7 −7 |
Discussion
- Datum as struct 16 messages · 2025-07-31 → 2025-08-21