apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r396328 - /apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
Date Sun, 23 Apr 2006 22:04:54 GMT
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);



Mime
View raw message