pgsql: aio: Use runtime arguments with injections points in tests - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: aio: Use runtime arguments with injections points in tests
Date
Msg-id E1uDb1m-00111P-0Y@gemulon.postgresql.org
Whole thread Raw
List 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@burd.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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: injection_points: Add support and tests for runtime arguments
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc PG 18 relnotes: mv. hash joins and GROUP BY item to General