Commit b75535cc authored by Barry Warsaw's avatar Barry Warsaw

getSize(): Jim says this can return a string, and that it's not worth

implementing correctly, so change this to return "too hard to
determine".
parent f46909df
...@@ -25,7 +25,7 @@ from bsddb3 import db ...@@ -25,7 +25,7 @@ from bsddb3 import db
from ZODB import POSException from ZODB import POSException
from ZODB.BaseStorage import BaseStorage from ZODB.BaseStorage import BaseStorage
# $Revision: 1.6 $ # $Revision: 1.7 $
__version__ = '0.1' __version__ = '0.1'
...@@ -146,7 +146,7 @@ class BerkeleyBase(BaseStorage): ...@@ -146,7 +146,7 @@ class BerkeleyBase(BaseStorage):
def getSize(self): def getSize(self):
"""Return the size of the database.""" """Return the size of the database."""
# TBD: this is expensive to calculate and many not be necessary. # TBD: this is expensive to calculate and many not be necessary.
return 0 return 'too hard to determine'
# BAW: this overrides BaseStorage.tpc_vote() with exactly the same # BAW: this overrides BaseStorage.tpc_vote() with exactly the same
# implementation. This is so Zope 2.3.1, which doesn't include the change # implementation. This is so Zope 2.3.1, which doesn't include the change
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment