Thread: pgsql: aio: Pass result of local callbacks to ->report_return

pgsql: aio: Pass result of local callbacks to ->report_return

From
Andres Freund
Date:
aio: Pass result of local callbacks to ->report_return

Otherwise the results of e.g. temp table buffer verification errors will not
reach bufmgr.c. Obviously that's not right. Found while expanding the tests
for invalid buffer contents.

Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/20250326001915.bc.nmisch@google.com

Branch
------
master

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

Modified Files
--------------
src/backend/storage/aio/aio.c          | 22 +++++++++++-----------
src/backend/storage/aio/aio_callback.c | 13 ++++++++++---
src/include/storage/aio_internal.h     |  2 +-
3 files changed, 22 insertions(+), 15 deletions(-)