[Zodb-checkins] CVS: ZODB3/ZEO - ClientStorage.py:1.57

Jeremy Hylton jeremy@zope.com
Wed, 11 Sep 2002 13:36:39 -0400


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv14246

Modified Files:
	ClientStorage.py 
Log Message:
Raise ReadOnlyError on tpc_begin().


=== ZODB3/ZEO/ClientStorage.py 1.56 => 1.57 ===
--- ZODB3/ZEO/ClientStorage.py:1.56	Mon Sep  9 14:34:03 2002
+++ ZODB3/ZEO/ClientStorage.py	Wed Sep 11 13:36:39 2002
@@ -341,6 +341,8 @@
         return self._check_serials()
 
     def tpc_begin(self, transaction, tid=None, status=' '):
+        if self._is_read_only:
+            raise POSException.ReadOnlyError()
         self._tpc_cond.acquire()
         while self._transaction is not None:
             # It is allowable for a client to call two tpc_begins in a