[Checkins] SVN: relstorage/trunk/relstorage/storage.py Don't clear the cache when handling a stale database connection.

Shane Hathaway shane at hathawaymix.org
Fri Sep 30 13:19:46 EST 2011


Log message for revision 123001:
  Don't clear the cache when handling a stale database connection.
  

Changed:
  U   relstorage/trunk/relstorage/storage.py

-=-
Modified: relstorage/trunk/relstorage/storage.py
===================================================================
--- relstorage/trunk/relstorage/storage.py	2011-09-30 09:56:16 UTC (rev 123000)
+++ relstorage/trunk/relstorage/storage.py	2011-09-30 18:19:45 UTC (rev 123001)
@@ -1235,9 +1235,8 @@
             # The database connection is stale, but postpone this
             # error until the application tries to read or write something.
             self._stale_error = e
-            # Always poll (override the poll_interval option).
-            self._poll_at = 0
-            return None, prev
+            self._poll_at = 0  # Don't defer polling.
+            return (), prev
 
         self._stale_error = None
 



More information about the checkins mailing list