AioCtl Shared Memory size fix - Mailing list pgsql-hackers

From Madhukar .
Subject AioCtl Shared Memory size fix
Date
Msg-id CAKi+wrbC2dTzh_vKJoAZXV5wqTbhY0n4wRNpCjJ=e36aoo0kFw@mail.gmail.com
Whole thread Raw
Responses Re: AioCtl Shared Memory size fix
List pgsql-hackers
Hi Folks,

While reviewing AIO code, we found an issue with AioCtlShmemSize function. The function was not accounting for io_handles which is used post shared memory alloc in AioShmemInit. Please find a patch to account for io_handles member of PgAioCtl.

The patch uses sizeof(PgAioCtl) instead of offsetof(PgAioCtl, io_handles) in AioCtlShmemSize.

Thanks,
Madhukar
Attachment

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Fix missing EvalPlanQual recheck for TID scans
Next
From: Peter Eisentraut
Date:
Subject: Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt