* support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]

This commit is contained in:
Gregory P. Smith 2006-06-05 01:39:52 +00:00
parent 58ce5bc14c
commit 76a82e89ab
3 changed files with 78 additions and 0 deletions

View file

@ -659,6 +659,13 @@ class BasicTransactionTestCase(BasicTestCase):
except db.DBIncompleteError:
pass
if db.version() >= (4,0):
statDict = self.env.log_stat(0);
assert statDict.has_key('magic')
assert statDict.has_key('version')
assert statDict.has_key('cur_file')
assert statDict.has_key('region_nowait')
# must have at least one log file present:
logs = self.env.log_archive(db.DB_ARCH_ABS | db.DB_ARCH_LOG)
assert logs != None