pgsql: aio: Regularize IO worker internal naming.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: aio: Regularize IO worker internal naming.
Date: 2025-07-12 02:50:10
Message-ID: E1uaQJW-005qwH-0p@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

aio: Regularize IO worker internal naming.

Adopt PgAioXXX convention for pgaio module type names. Rename a
function that didn't use a pgaio_worker_ submodule prefix. Rename the
internal submit function's arguments to match the indirectly relevant
function pointer declaration and nearby examples. Rename the array of
handle IDs in PgAioSubmissionQueue to sqes, a term of art seen in the
systems it emulates, also clarifying that they're not IO handle
pointers as the old name might imply.

No change in behavior, just type, variable and function name cleanup.

Back-patch to 18.

Discussion: https://postgr.es/m/CA%2BhUKG%2BwbaZZ9Nwc_bTopm4f-7vDmCwLk80uKDHj9mq%2BUp0E%2Bg%40mail.gmail.com

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b2afb06763379aec35e5b34982db3a63591c8cfe

Modified Files
--------------
src/backend/storage/aio/method_worker.c | 54 ++++++++++++++++-----------------
src/tools/pgindent/typedefs.list | 6 ++--
2 files changed, 30 insertions(+), 30 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2025-07-12 04:38:30 pgsql: aio: Fix configuration reload in IO workers.
Previous Message Thomas Munro 2025-07-12 02:49:53 pgsql: aio: Regularize IO worker internal naming.