SVN: ZODB/trunk/src/ZEO/StorageServer.py Explain some puzzling code :)

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
Log message for revision 116302:
  Explain some puzzling code :)
  

Changed:
  U   ZODB/trunk/src/ZEO/StorageServer.py

-=-
Modified: ZODB/trunk/src/ZEO/StorageServer.py
===================================================================
--- ZODB/trunk/src/ZEO/StorageServer.py	2010-09-12 08:52:28 UTC (rev 116301)
+++ ZODB/trunk/src/ZEO/StorageServer.py	2010-09-12 11:56:47 UTC (rev 116302)
@@ -920,6 +920,12 @@
     def _setup_invq(self, name, storage):
         lastInvalidations = getattr(storage, 'lastInvalidations', None)
         if lastInvalidations is None:
+            # Using None below doesn't look right, but the first
+            # element in invq is never used.  See get_invalidations.
+            # (If it was used, it would generate an error, which would
+            # be good. :) Doing this allows clients that were up to
+            # date when a server was restarted to pick up transactions
+            # it subsequently missed.
             self.invq[name] = [(storage.lastTransaction(), None)]
         else:
             self.invq[name] = list(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.