aio: Use runtime arguments with injections points in tests
authorMichael Paquier <michael@paquier.xyz>
Sat, 10 May 2025 03:36:57 +0000 (12:36 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 10 May 2025 03:36:57 +0000 (12:36 +0900)
commitc259ba881c1098e75b53d5b232600b49e3301058
tree3b2d0439da89b797f7af649f8b26fc070b39efbf
parent36e5fda6326045f4523568d4c9d682ee5d2f0867
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
src/backend/storage/aio/aio.c
src/backend/storage/aio/method_worker.c
src/include/storage/aio_internal.h
src/test/modules/test_aio/test_aio.c