bugfix: when log_archive was called with the DB_ARCH_REMOVE flag present

in BerkeleyDB >= 4.2 it tried to construct a list out of an uninitialized
char **log_list.

feature: export the DB_ARCH_REMOVE flag by name in the module on BerkeleyDB >= 4.2.
This commit is contained in:
Gregory P. Smith 2006-06-05 00:31:01 +00:00
parent 1985ff76ca
commit 3dd20022ac
2 changed files with 12 additions and 5 deletions

View file

@ -665,6 +665,9 @@ class BasicTransactionTestCase(BasicTestCase):
for log in logs:
if verbose:
print 'log file: ' + log
if db.version >= (4,2):
logs = self.env.log_archive(db.DB_ARCH_REMOVE)
assert not logs
self.txn = self.env.txn_begin()