aio: Regularize IO worker internal naming.
authorThomas Munro <tmunro@postgresql.org>
Sat, 12 Jul 2025 01:43:27 +0000 (13:43 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 12 Jul 2025 02:44:09 +0000 (14:44 +1200)
commit01d618bcd782b7984a4289fef25867c681f3ebbf
treedb204551644b422a220eb4b8404656c0af3e7333
parent40e105042a4bec83ad8bc39e54edde2caf68d6a8
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: http://postgr.es/m/CA%2BhUKG%2BwbaZZ9Nwc_bTopm4f-7vDmCwLk80uKDHj9mq%2BUp0E%2Bg%40mail.gmail.com
src/backend/storage/aio/method_worker.c
src/tools/pgindent/typedefs.list