[Zope3-checkins] CVS: Zope3/src/zodb/storage - mapping.py:1.3.2.2

Jeremy Hylton jeremy@zope.com
Thu, 13 Feb 2003 19:27:19 -0500


Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv25342/storage

Modified Files:
      Tag: ZODB3-2-integration-branch
	mapping.py 
Log Message:
Add noop close() and cleanup()


=== Zope3/src/zodb/storage/mapping.py 1.3.2.1 => 1.3.2.2 ===
--- Zope3/src/zodb/storage/mapping.py:1.3.2.1	Thu Feb 13 19:25:36 2003
+++ Zope3/src/zodb/storage/mapping.py	Thu Feb 13 19:27:19 2003
@@ -108,16 +108,15 @@
     __implements__ = IStorage
 
     def __init__(self, name='Mapping Storage'):
-
         base.BaseStorage.__init__(self, name)
+        self._index = {}
+        self._tindex = []
 
-        self._index={}
-        self._tindex=[]
+    def close(self):
+        pass
 
-        # Note:
-        # If you subclass this and use a persistent mapping facility
-        # (e.g. a dbm file), you will need to get the maximum key and
-        # save it as self._oid.  See dbmStorage.
+    def cleanup(self):
+        pass
 
     def load(self, oid, version):
         self._lock_acquire()