Message183430
This code:
def _openDBEnv(cachesize):
e = db.DBEnv()
if cachesize is not None:
if cachesize >= 20480:
e.set_cachesize(0, cachesize)
else:
raise error, "cachesize must be >= 20480"
e.set_lk_detect(db.DB_LOCK_DEFAULT)
e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK | db.DB_INIT_MPOOL)
return e
causes Berkeley DB to read the DB_CONFIG file from the current directory, which may have unexpected side effects. Unfortunately, Berkeley DB still reads ./DB_CONFIG even if the first argument to DBEnv.open() is None/NULL, so the only way to suppress this behavior seems a non-existing or known-to-by-empty directory (such as "/var/empty"). |
|
Date |
User |
Action |
Args |
2013-03-04 10:47:56 | fweimer | set | recipients:
+ fweimer |
2013-03-04 10:47:56 | fweimer | set | messageid: <1362394076.13.0.84822225356.issue17347@psf.upfronthosting.co.za> |
2013-03-04 10:47:56 | fweimer | link | issue17347 messages |
2013-03-04 10:47:55 | fweimer | create | |
|