[afsql] fixed crash on AIX where zero-initializing a GStaticMutex renders the mutex ...
authorBalazs Scheidler <bazsi@balabit.hu>
Wed, 14 Jan 2009 16:42:56 +0000 (17:42 +0100)
committerBalazs Scheidler <bazsi@balabit.hu>
Fri, 16 Jan 2009 13:07:00 +0000 (14:07 +0100)
commitc62e656554681f365429f317fb93f2eb257145ca
treed4b16a55499a8f8c8248d2ddb57ee68a3c670bb5
parenta60105885c223a879d22f2a41b4a0972061085f9
[afsql] fixed crash on AIX where zero-initializing a GStaticMutex renders the mutex useless (fixes: #16306)

G_STATIC_MUTEX_INIT is not equivalent to zero initializing the
mutex on AIX. self->queue_lock has only been zero-initialized
and this causes races on the LogQueue instance used to transfer
messages between the main and the SQL thread.
src/afsql.c