[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/blob.py Removed the do-nothing getSizeMethod from BlobStorage.

Jim Fulton jim at zope.com
Fri Dec 5 15:09:28 EST 2008


Log message for revision 93696:
  Removed the do-nothing getSizeMethod from BlobStorage.
  

Changed:
  U   ZODB/trunk/src/ZODB/blob.py

-=-
Modified: ZODB/trunk/src/ZODB/blob.py
===================================================================
--- ZODB/trunk/src/ZODB/blob.py	2008-12-05 20:09:25 UTC (rev 93695)
+++ ZODB/trunk/src/ZODB/blob.py	2008-12-05 20:09:27 UTC (rev 93696)
@@ -692,7 +692,7 @@
             oid, serial = self.dirty_oids.pop()
             clean = self.fshelper.getBlobFilename(oid, serial)
             if os.path.exists(clean):
-                remove_committed(clean) 
+                remove_committed(clean)
 
     @non_overridable
     def loadBlob(self, oid, serial):
@@ -783,13 +783,6 @@
         return result
 
     @non_overridable
-    def getSize(self):
-        """Return the size of the database in bytes."""
-        # XXX The old way of computing is way to resource hungry. We need to
-        # do some kind of estimation instead.
-        return getProxiedObject(self).getSize()
-
-    @non_overridable
     def undo(self, serial_id, transaction):
         undo_serial, keys = getProxiedObject(self).undo(serial_id, transaction)
         # serial_id is the transaction id of the txn that we wish to undo.



More information about the Zodb-checkins mailing list