mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
aio: Fix assertion, clarify README
The assertion wouldn't have triggered for a long while yet, but this won't accidentally fail to detect the issue if/when it occurs. Author: Matthias van de Meent <boekewurm+postgres@gmail.com> Discussion: https://postgr.es/m/CAEze2Wj-43JV4YufW23gm=Uwr7Lkj+p0yKctKHxNm1rwFC+_DQ@mail.gmail.com Backpatch-through: 18
This commit is contained in:
@@ -201,7 +201,7 @@ typedef enum PgAioHandleCallbackID
|
||||
} PgAioHandleCallbackID;
|
||||
|
||||
#define PGAIO_HCB_MAX PGAIO_HCB_LOCAL_BUFFER_READV
|
||||
StaticAssertDecl(PGAIO_HCB_MAX <= (1 << PGAIO_RESULT_ID_BITS),
|
||||
StaticAssertDecl(PGAIO_HCB_MAX < (1 << PGAIO_RESULT_ID_BITS),
|
||||
"PGAIO_HCB_MAX is too big for PGAIO_RESULT_ID_BITS");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user