You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2006/04/24 00:04:54 UTC
svn commit: r396328 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
Author: bojan
Date: Sun Apr 23 15:04:53 2006
New Revision: 396328
URL: http://svn.apache.org/viewcvs?rev=396328&view=rev
Log:
Correct lock/unlock for the query busy code
Modified:
apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
Modified: apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c?rev=396328&r1=396327&r2=396328&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c Sun Apr 23 15:04:53 2006
@@ -266,9 +266,9 @@
if (ret != SQLITE_BUSY)
break;
- apr_dbd_mutex_unlock(sql->mutex);
+ apr_dbd_mutex_unlock();
apr_sleep(MAX_RETRY_SLEEP);
- apr_dbd_mutex_lock(sql->mutex);
+ apr_dbd_mutex_lock();
}
*nrows = sqlite3_changes(sql->conn);