[Mod-auth-commit] mod_authn_dbi/src mod_authn_dbi.c,1.10,1.11
Brought to you by:
firechipmunk,
honx
From: <fir...@us...> - 2004-02-08 03:34:29
|
Update of /cvsroot/mod-auth/mod_authn_dbi/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10587/src Modified Files: mod_authn_dbi.c Log Message: Make sure we use thread locking for mysql drivers. This was spotted by Brice Tebbs. Index: mod_authn_dbi.c =================================================================== RCS file: /cvsroot/mod-auth/mod_authn_dbi/src/mod_authn_dbi.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mod_authn_dbi.c 8 Feb 2004 02:18:28 -0000 1.10 --- mod_authn_dbi.c 8 Feb 2004 03:31:31 -0000 1.11 *************** *** 217,221 **** dbi_conn_set_option(myres->conn, "dbname", name); #if DBI_NOT_THREAD_SAFE ! if (strcmp(driver, "mysql")) { apr_thread_mutex_lock(dbi_lock); } --- 217,221 ---- dbi_conn_set_option(myres->conn, "dbname", name); #if DBI_NOT_THREAD_SAFE ! if (strcmp(driver, "mysql") == 0) { apr_thread_mutex_lock(dbi_lock); } *************** *** 234,238 **** } #if DBI_NOT_THREAD_SAFE ! if (strcmp(driver, "mysql")) { apr_thread_mutex_unlock(dbi_lock); } --- 234,238 ---- } #if DBI_NOT_THREAD_SAFE ! if (strcmp(driver, "mysql") == 0) { apr_thread_mutex_unlock(dbi_lock); } |