[Zodb-checkins] CVS: Zope/lib/python/ZODB - Mount.py:1.11.2.1

Shane Hathaway shane@digicool.com
Tue, 4 Dec 2001 18:03:33 -0500


Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv2059

Modified Files:
      Tag: Zope-2_5-branch
	Mount.py 
Log Message:
Paranoia: don't reawaken the mount point just to close it.


=== Zope/lib/python/ZODB/Mount.py 1.11 => 1.11.2.1 ===
             # Detect whether we should close the database.
             close_db = self.close_db
-            t = mp._v_data
+            t = mp.__dict__.get('_v_data', None)
             if t is not None:
-                mp._v_data = None
+                del mp.__dict__['_v_data']
                 data = t[0]
-                if not close_db and getattr(data, '_v__object_deleted__', 0):
+                if not close_db and data.__dict__.get(
+                    '_v__object_deleted__', 0):
                     # This mount point has been deleted.
-                    del data._v__object_deleted__
+                    del data.__dict__['_v__object_deleted__']
                     close_db = 1
             # Close the child connection.
             try: del conn._mount_parent_jar