From: Andre Noll Date: Sat, 7 Jul 2007 17:11:45 +0000 (+0200) Subject: mysql_selector.c: introduce the myslq lock X-Git-Tag: v0.2.17~47 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=843950e7a85730b796bb6238b6e91111f7209c25;hp=843950e7a85730b796bb6238b6e91111f7209c25;p=paraslash.git mysql_selector.c: introduce the myslq lock This fixes a race condition in para_server: parent child real_query real_query mysql_store_result This could cause para_server to hang in case the child process issued a query which does not yield a result. It's hard to hit though. Fix is to take the lock before the call to real_query, and release it after mysql_store_result(). The patch also fixes a format string bug which was introduced by the patch that switched to my_ulonglong for suitable variables in mysql_selector.c. These need "%lli". ---