1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +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

@@ -55,7 +55,7 @@ pgaio_io_get_target_name(PgAioHandle *ioh)
/*
* Assign a target to the IO.
*
* This has to be called exactly once before pgaio_io_prep_*() is called.
* This has to be called exactly once before pgaio_io_start_*() is called.
*/
void
pgaio_io_set_target(PgAioHandle *ioh, PgAioTargetID targetid)
@@ -101,7 +101,7 @@ pgaio_io_can_reopen(PgAioHandle *ioh)
/*
* Internal: Before executing an IO outside of the context of the process the
* IO has been prepared in, the file descriptor has to be reopened - any FD
* IO has been staged in, the file descriptor has to be reopened - any FD
* referenced in the IO itself, won't be valid in the separate process.
*/
void