summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2006-06-05 01:56:15 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2006-06-05 01:56:15 (GMT)
commitdb8a80735b9ce54f26d3e6796d0ae647455ca854 (patch)
tree9eaa7b9d639c22250027e6ba91b41cc5c51ecde5 /Lib
parentd6a9eeffc5b9f7763efd47467588d4209a378b00 (diff)
downloadcpython-db8a80735b9ce54f26d3e6796d0ae647455ca854.zip
cpython-db8a80735b9ce54f26d3e6796d0ae647455ca854.tar.gz
cpython-db8a80735b9ce54f26d3e6796d0ae647455ca854.tar.bz2
* support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902]
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bsddb/dbobj.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py
index f5bd0dc..530de4f 100644
--- a/Lib/bsddb/dbobj.py
+++ b/Lib/bsddb/dbobj.py
@@ -91,11 +91,13 @@ class DBEnv:
return apply(self._cobj.lock_stat, args, kwargs)
def log_archive(self, *args, **kwargs):
return apply(self._cobj.log_archive, args, kwargs)
+
+ def set_get_returns_none(self, *args, **kwargs):
+ return apply(self._cobj.set_get_returns_none, args, kwargs)
+
if db.version() >= (4,0):
def log_stat(self, *args, **kwargs):
return apply(self._cobj.log_stat, args, kwargs)
- def set_get_returns_none(self, *args, **kwargs):
- return apply(self._cobj.set_get_returns_none, args, kwargs)
if db.version() >= (4,1):
def dbremove(self, *args, **kwargs):
@@ -105,6 +107,10 @@ class DBEnv:
def set_encrypt(self, *args, **kwargs):
return apply(self._cobj.set_encrypt, args, kwargs)
+ if db.version() >= (4,4):
+ def lsn_reset(self, *args, **kwargs):
+ return apply(self._cobj.lsn_reset, args, kwargs)
+
class DB(DictMixin):
def __init__(self, dbenv, *args, **kwargs):