[Python-checkins] r65435 - tracker/roundup-src/roundup/cgi/client.py
martin.v.loewis
python-checkins at python.org
Sun Aug 3 19:51:19 CEST 2008
Author: martin.v.loewis
Date: Sun Aug 3 19:51:18 2008
New Revision: 65435
Log:
Release DB locks if we don't want to clean. This
should prevent the subsequent update of our own session
to run into a conflict.
Modified:
tracker/roundup-src/roundup/cgi/client.py
Modified: tracker/roundup-src/roundup/cgi/client.py
==============================================================================
--- tracker/roundup-src/roundup/cgi/client.py (original)
+++ tracker/roundup-src/roundup/cgi/client.py Sun Aug 3 19:51:18 2008
@@ -410,6 +410,8 @@
hour = 60*60
now = time.time()
if now - last_clean < hour:
+ # Release the database lock obtained when looking at last_clean
+ self.db.rollback()
return
# This is a bit ugly, but right now, I'm too lazy to fix a new API
More information about the Python-checkins
mailing list