[Zodb-checkins] CVS: ZODB3/bsddb3Storage/bsddb3Storage - Full.py:1.59

Barry Warsaw barry@wooz.org
Fri, 6 Dec 2002 16:15:07 -0500


Update of /cvs-repository/ZODB3/bsddb3Storage/bsddb3Storage
In directory cvs.zope.org:/tmp/cvs-serv1572

Modified Files:
	Full.py 
Log Message:
_RecordsIterator.__init__(): Port transaction extension fix from
ZODB4.  We need to return the unpickled extension data.


=== ZODB3/bsddb3Storage/bsddb3Storage/Full.py 1.58 => 1.59 ===
--- ZODB3/bsddb3Storage/bsddb3Storage/Full.py:1.58	Fri Dec  6 12:31:58 2002
+++ ZODB3/bsddb3Storage/bsddb3Storage/Full.py	Fri Dec  6 16:15:07 2002
@@ -1816,7 +1816,10 @@
             self.status = ' '
         self.user = user
         self.description = desc
-        self._extension = ext
+        try:
+            self._extension = pickle.loads(ext)
+        except EOFError:
+            self._extension = {}
         # Internal pointer
         self._oids = self._storage._alltxnoids(self.tid)
         # To make .pop() more efficient
@@ -1867,7 +1870,6 @@
         self._packtime = packtime
         self._classicpack = classicpack
         # Bookkeeping
-        self._stop = False
         self._lastclassic = 0
 
     def _dowork(self):