[Zope-Checkins] CVS: ZODB3/BDBStorage - BDBFullStorage.py:1.44.4.7 BDBMinimalStorage.py:1.12.6.5

Barry Warsaw barry@zope.com
Mon, 28 Jul 2003 13:43:30 -0400


Update of /cvs-repository/ZODB3/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv17184/BDBStorage

Modified Files:
      Tag: ZODB3-3_1-branch
	BDBFullStorage.py BDBMinimalStorage.py 
Log Message:
_dostore(): Raise ReadOnlyError when the _is_read_only flag is set.


=== ZODB3/BDBStorage/BDBFullStorage.py 1.44.4.6 => 1.44.4.7 ===
--- ZODB3/BDBStorage/BDBFullStorage.py:1.44.4.6	Thu Jul 24 14:46:42 2003
+++ ZODB3/BDBStorage/BDBFullStorage.py	Mon Jul 28 13:43:23 2003
@@ -562,6 +562,8 @@
 
     def store(self, oid, serial, data, version, transaction):
         # Lock and transaction wrapper
+        if self._is_read_only:
+            raise POSException.ReadOnlyError()
         if transaction is not self._transaction:
             raise POSException.StorageTransactionError(self, transaction)
         self._lock_acquire()


=== ZODB3/BDBStorage/BDBMinimalStorage.py 1.12.6.4 => 1.12.6.5 ===
--- ZODB3/BDBStorage/BDBMinimalStorage.py:1.12.6.4	Thu Jan 30 18:33:00 2003
+++ ZODB3/BDBStorage/BDBMinimalStorage.py	Mon Jul 28 13:43:24 2003
@@ -292,6 +292,8 @@
         return newserial
 
     def store(self, oid, serial, data, version, transaction):
+        if self._is_read_only:
+            raise POSException.ReadOnlyError()
         if transaction is not self._transaction:
             raise POSException.StorageTransactionError(self, transaction)
         # We don't support versions