Assert there is no duplicated exit callbacks

From: Qingqing Zhou <zhouqq(dot)postgres(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Assert there is no duplicated exit callbacks
Date: 2015-04-15 16:52:52
Message-ID: CAJjS0u1YQUx_yPtz+3eSjvR8OMDHh44mUkg_KXg5_d3cT3+r_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Attached is a patch to assert there is no duplicated exit callbacks.

Along the way, I downgrade the runtime "enough room" check to an
assertion: the callbacks are registered in pretty fixed initialization
code path, thus assertion is good enough to prevent overlook there. If
we don't agree with this, then the duplication check shall also bump
to runtime checks.

Regards,
Qingqing

Attachment Content-Type Size
ipc.diff text/plain 4.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-04-15 16:57:44 Re: TAP tests of pg_rewind not stopping servers used for the tests
Previous Message Robert Haas 2015-04-15 16:39:51 Re: Turning off HOT/Cleanup sometimes