[Checkins] SVN: relstorage/trunk/relstorage/cache.py Don't bother to hit the database when checkpoint1 == new_tid_int,

Shane Hathaway shane at hathawaymix.org
Tue Oct 20 17:36:58 EDT 2009


Log message for revision 105187:
  Don't bother to hit the database when checkpoint1 == new_tid_int,
  since that always means there is no delta between the checkpoints
  and new_tid_int.
  

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

-=-
Modified: relstorage/trunk/relstorage/cache.py
===================================================================
--- relstorage/trunk/relstorage/cache.py	2009-10-20 21:31:51 UTC (rev 105186)
+++ relstorage/trunk/relstorage/cache.py	2009-10-20 21:36:58 UTC (rev 105187)
@@ -414,7 +414,7 @@
             # Rebuild delta_after0 and delta_after1.
             new_delta_after0 = {}
             new_delta_after1 = {}
-            if cp0 <= new_tid_int:
+            if cp1 < new_tid_int:
                 # poller.list_changes provides an iterator of
                 # (oid, tid) where tid > after_tid and tid <= last_tid.
                 changes = self.adapter.poller.list_changes(



More information about the checkins mailing list