[Zodb-checkins] CVS: Packages/ZEO - ClientStorage.py:1.33
jeremy@digicool.com
jeremy@digicool.com
Wed, 9 May 2001 15:00:20 -0400 (EDT)
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv29664
Modified Files:
ClientStorage.py
Log Message:
XXX Add closed attribute to prevent re-opening the cache after it is closed.
--- Updated File ClientStorage.py in package Packages/ZEO --
--- ClientStorage.py 2001/05/09 18:37:52 1.32
+++ ClientStorage.py 2001/05/09 19:00:20 1.33
@@ -140,6 +140,7 @@
name = name or str(connection)
+ self.closed = 0
self._tfile=tempfile.TemporaryFile()
self._oids=[]
self._serials=[]
@@ -221,6 +222,9 @@
self._call.finishConnect(s)
+ if self.closed:
+ return
+
self._connected=1
self._oids=[]
@@ -298,8 +302,10 @@
def close(self):
self._lock_acquire()
try:
+ LOG("ClientStorage", INFO, "close")
self._call.closeIntensionally()
self._cache.close()
+ self.closed = 1
finally: self._lock_release()
def commitVersion(self, src, dest, transaction):