summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2003-08-28 21:50:30 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2003-08-28 21:50:30 (GMT)
commit6676f6edc11bd3e3e1559a76aab22c6af6faf14e (patch)
treeb802aaf86757a65a91db5bb0187d74e144f6e72a /Lib/bsddb
parent376e63d5cdb7388b5787ab10f7d82ba24257e742 (diff)
downloadcpython-6676f6edc11bd3e3e1559a76aab22c6af6faf14e.zip
cpython-6676f6edc11bd3e3e1559a76aab22c6af6faf14e.tar.gz
cpython-6676f6edc11bd3e3e1559a76aab22c6af6faf14e.tar.bz2
Support DBEnv.set_shm_key() to allow multi-threaded multi-process
database environments to use shared memory on systems supporting it.
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/dbobj.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bsddb/dbobj.py b/Lib/bsddb/dbobj.py
index d23f533..abda657 100644
--- a/Lib/bsddb/dbobj.py
+++ b/Lib/bsddb/dbobj.py
@@ -39,6 +39,8 @@ class DBEnv:
return apply(self._cobj.open, args, kwargs)
def remove(self, *args, **kwargs):
return apply(self._cobj.remove, args, kwargs)
+ def set_shm_key(self, *args, **kwargs):
+ return apply(self._cobj.set_shm_key, args, kwargs)
def set_cachesize(self, *args, **kwargs):
return apply(self._cobj.set_cachesize, args, kwargs)
def set_data_dir(self, *args, **kwargs):