[Patches] [ python-Patches-545523 ] patch for 514433 bsddb.dbopen (NULL)

noreply@sourceforge.net noreply@sourceforge.net
Thu, 18 Apr 2002 00:41:44 -0700


Patches item #545523, was opened at 2002-04-18 17:39
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=545523&group_id=5470

>Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for 514433  bsddb.dbopen (NULL)

Initial Comment:
This is a patch for 
[ 514433 ] bsddb: enable dbopen (file==NULL)
from that bug:
"""
bsddb: enable dbopen (file==NULL)
dbopen(): if the file argument is NULL, the library
will use a temporary file. this is useful if you want
that, or if you want to specify a large cache so that
it never actually touches the disk. [i.e., in-memory
hash/bt]
I've done this by replacing the "s" with a "z" in the
arg specs for the three open functions. Seems to work. 
"""

This patch does this. Some testing seems to show that
it works fine.

The docs for db-1.86 show that it was an acceptable
option back then, and it's still allowed for db-3.2,
so that seems a wide enough range of supported 
libraries.

Anyway, this patch has the trivial fix, additions
to the test suite (such as it is) and some short
additions to the docs (lifted from the dbopen()
manpage)

If this is fine, let me know and I'll check it into
the trunk.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=545523&group_id=5470