[Zodb-checkins] CVS: Packages/bsddb3Storage - Minimal.py:1.6

barry@digicool.com barry@digicool.com
Thu, 29 Mar 2001 19:14:53 -0500 (EST)


Update of /cvs-repository/Packages/bsddb3Storage
In directory korak:/tmp/cvs-serv12174

Modified Files:
	Minimal.py 
Log Message:
_finish(): next_object() => next()

_closelog(): Moved to BerkeleyBase base class.



--- Updated File Minimal.py in package Packages/bsddb3Storage --
--- Minimal.py	2001/03/27 20:53:23	1.5
+++ Minimal.py	2001/03/30 00:14:52	1.6
@@ -97,7 +97,7 @@
             # tpc_begin().
             serial = self._serial
             while 1:
-                rec = self._commitlog.next_object()
+                rec = self._commitlog.next()
                 if rec is None:
                     break
                 oid, pickle = rec
@@ -123,14 +123,6 @@
         # done with our commit log, so we should reset it.
         self._closelog()
 
-    def _closelog(self):
-        self._commitlog.finish()
-        # JF: unlinking might be too inefficient.  JH: might use mmap files.
-        # BAW: maybe just truncate the file, or write a length into the
-        # headers and just zero out the length.
-        self._commitlog.close(unlink=1)
-        self._commitlog = None
-        
     def close(self):
         # BAW: the original implementation also deleted these attributes.  Was
         # that just to reclaim the garbage?