diff roundup/backends/rdbms_common.py @ 4448:2784c239e6c8

clear the cache on commit for rdbms backends: Don't carry over cached values from one transaction to the next (there may be other changes from other transactions) see new ConcurrentDBTest for a read-modify-update cycle that fails with the old caching behavior.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Fri, 22 Oct 2010 14:14:26 +0000
parents f2f2904fe6ce
children 0f4a8fcb9a1d
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Thu Oct 21 20:31:13 2010 +0000
+++ b/roundup/backends/rdbms_common.py	Fri Oct 22 14:14:26 2010 +0000
@@ -1301,6 +1301,11 @@
         # clear out the transactions
         self.transactions = []
 
+        # clear the cache: Don't carry over cached values from one
+        # transaction to the next (there may be other changes from other
+        # transactions)
+        self.clearCache()
+
     def sql_rollback(self):
         self.conn.rollback()
 

Roundup Issue Tracker: http://roundup-tracker.org/