[Python-checkins] r70396 - tracker/roundup-src/roundup/cgi/client.py
martin.v.loewis
python-checkins at python.org
Sun Mar 15 22:53:06 CET 2009
Author: martin.v.loewis
Date: Sun Mar 15 22:53:05 2009
New Revision: 70396
Log:
Reapply r65435:
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 Mar 15 22:53:05 2009
@@ -540,6 +540,8 @@
# 'last_clean' string is used instead of otk key
last_clean = self.db.getOTKManager().get('last_clean', 'last_use', 0)
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