1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

aio: Rename pgaio_io_prep_* to pgaio_io_start_*

The old naming pattern (mirroring liburing's naming) was inconsistent with
the (not yet introduced) callers. It seems better to get rid of the
inconsistency now than to grow more users of the odd naming.

Reported-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/20250326001915.bc.nmisch@google.com
This commit is contained in:
Andres Freund
2025-03-26 16:10:29 -04:00
parent f321ec237a
commit 9469d7fdd2
6 changed files with 28 additions and 28 deletions

View File

@@ -42,13 +42,13 @@ typedef enum PgAioHandleState
/*
* Returned by pgaio_io_acquire(). The next state is either DEFINED (if
* pgaio_io_prep_*() is called), or IDLE (if pgaio_io_release() is
* pgaio_io_start_*() is called), or IDLE (if pgaio_io_release() is
* called).
*/
PGAIO_HS_HANDED_OUT,
/*
* pgaio_io_prep_*() has been called, but IO is not yet staged. At this
* pgaio_io_start_*() has been called, but IO is not yet staged. At this
* point the handle has all the information for the IO to be executed.
*/
PGAIO_HS_DEFINED,