[Checkins] SVN: gocept.zeoraid/trunk/ Fix accidentally commented out assertion that requires undo capabilities from

Christian Theune ct at gocept.com
Wed May 21 03:20:50 EDT 2008


Log message for revision 86872:
  Fix accidentally commented out assertion that requires undo capabilities from
  underlying storages.
  

Changed:
  U   gocept.zeoraid/trunk/CHANGES.txt
  U   gocept.zeoraid/trunk/src/gocept/zeoraid/storage.py

-=-
Modified: gocept.zeoraid/trunk/CHANGES.txt
===================================================================
--- gocept.zeoraid/trunk/CHANGES.txt	2008-05-21 04:01:13 UTC (rev 86871)
+++ gocept.zeoraid/trunk/CHANGES.txt	2008-05-21 07:20:48 UTC (rev 86872)
@@ -8,6 +8,9 @@
 - Changed the recipe's name pattern for management client scripts to
   <partname>-<storagename>-manage.
 
+- Fixed accidentally commented out assertion that only allows storages with
+  undo support to be used in ZEORaid.
+
 1.0b1 (2008-04-30)
 ------------------
 

Modified: gocept.zeoraid/trunk/src/gocept/zeoraid/storage.py
===================================================================
--- gocept.zeoraid/trunk/src/gocept/zeoraid/storage.py	2008-05-21 04:01:13 UTC (rev 86871)
+++ gocept.zeoraid/trunk/src/gocept/zeoraid/storage.py	2008-05-21 07:20:48 UTC (rev 86872)
@@ -565,7 +565,7 @@
     def _open_storage(self, name):
         assert name not in self.storages, "Storage %s already opened" % name
         storage = self.openers[name].open()
-        #assert hasattr(storage, 'supportsUndo') and storage.supportsUndo()
+        assert hasattr(storage, 'supportsUndo') and storage.supportsUndo()
         self.storages[name] = storage
 
     def _degrade_storage(self, name, fail=True):



More information about the Checkins mailing list