This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fweimer
Recipients fweimer
Date 2013-03-04.10:47:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362394076.13.0.84822225356.issue17347@psf.upfronthosting.co.za>
In-reply-to
Content
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").
History
Date User Action Args
2013-03-04 10:47:56fweimersetrecipients: + fweimer
2013-03-04 10:47:56fweimersetmessageid: <1362394076.13.0.84822225356.issue17347@psf.upfronthosting.co.za>
2013-03-04 10:47:56fweimerlinkissue17347 messages
2013-03-04 10:47:55fweimercreate