pgsql: aio: Improve assertions related to io_method

2025-11-04 Thread Andres Freund
aio: Improve assertions related to io_method First, the assertions in assign_io_method() were the wrong way round. Second, the lengthof() assertion checked the length of io_method_options, which is the wrong array to check and is always longer than pgaio_method_ops_table. While add it, add a stat

pgsql: aio: Improve assertions related to io_method

2025-11-04 Thread Andres Freund
aio: Improve assertions related to io_method First, the assertions in assign_io_method() were the wrong way round. Second, the lengthof() assertion checked the length of io_method_options, which is the wrong array to check and is always longer than pgaio_method_ops_table. While add it, add a stat