pgsql: aio: Use runtime arguments with injections points in tests

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: aio: Use runtime arguments with injections points in tests
Date: 2025-05-10 03:37:30
Message-ID: E1uDb1m-00111P-0Y@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

aio: Use runtime arguments with injections points in tests

This cleans up the code related to the testing infrastructure of AIO
that used injection points, switching the test code to use the new
facility for injection points added by 371f2db8b05e rather than tweaks
to pass and reset arguments to the callbacks run.

This removes all the dependencies to USE_INJECTION_POINTS in the AIO
code. pgaio_io_call_inj(), pgaio_inj_io_get() and pgaio_inj_cur_handle
are now gone.

Reviewed-by: Greg Burd <greg(at)burd(dot)me>
Discussion: https://postgr.es/m/Z_y9TtnXubvYAApS@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/backend/storage/aio/aio.c | 58 ++-------------------------------
src/backend/storage/aio/method_worker.c | 3 +-
src/include/storage/aio_internal.h | 20 ------------
src/test/modules/test_aio/test_aio.c | 4 +--
4 files changed, 5 insertions(+), 80 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2025-05-10 03:40:05 pgsql: doc PG 18 relnotes: mv. hash joins and GROUP BY item to General
Previous Message Michael Paquier 2025-05-09 22:41:13 pgsql: injection_points: Add support and tests for runtime arguments