aio: Pass result of local callbacks to ->report_return
authorAndres Freund <andres@anarazel.de>
Wed, 26 Mar 2025 20:06:54 +0000 (16:06 -0400)
committerAndres Freund <andres@anarazel.de>
Wed, 26 Mar 2025 20:06:54 +0000 (16:06 -0400)
commitf321ec237a54912b28d81acc4bfc4e434d9339c7
tree1195dca27d47a700c158e85cddfb979b1a696d45
parent96da9050a57aece4a48ab34a84bc3b3412708a20
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
src/backend/storage/aio/aio.c
src/backend/storage/aio/aio_callback.c
src/include/storage/aio_internal.h