[Zodb-checkins] CVS: StandaloneZODB/ZEO - ClientStorage.py:1.35.6.4.2.4
Jeremy Hylton
jeremy@zope.com
Tue, 7 May 2002 00:42:29 -0400
Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv17615
Modified Files:
Tag: ZEO2-branch
ClientStorage.py
Log Message:
It the tpc_cond condition variable is released, make sure _transaction
is None.
=== StandaloneZODB/ZEO/ClientStorage.py 1.35.6.4.2.3 => 1.35.6.4.2.4 ===
if self._server is None:
self.tpc_cond.release()
+ self._transaction = None
raise ClientDisconnected()
if tid is None:
@@ -372,6 +373,7 @@
# Client may have disconnected during the tpc_begin().
# Then notifyDisconnected() will have released the lock.
if self._server is not disconnected_stub:
+ self._transaction = None
self.tpc_cond.release()
raise