Issue 1391: Adds the .compact() method to bsddb db.DB objects (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/45732

classification

Title: Adds the .compact() method to bsddb db.DB objects
Type: enhancement Stage:
Components: Extension Modules Versions: Python 2.6

process

Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jcea Nosy List: donmez, gregory.p.smith, jcea
Priority: normal Keywords: patch

Created on 2007-11-05 01:49 by gregory.p.smith, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
add-bsddb-db_compact-gps01.patch.txt gregory.p.smith,2007-11-05 01:49
Messages (5)
msg57116 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2007-11-05 01:49
I'm attaching the patch to add this method here just as a place to track it for now. It compiles and it looks right, but it causes a crash within BerkeleyDB when the test case runs using BerkeleyDB 4.6.21. It passes as expected when using 4.4.20 or 4.5.20. I won't commit this until the 4.6 crash issue is resolved. python bindings for the compact method were requested here: http://sourceforge.net/tracker/index.php?func=detail&aid=1724985&group_id=13900&atid=363900
msg61830 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2008-01-29 21:35
I can reproduce the crash from a pure C program, so this library seems buggy. Posting a report in http://forums.oracle.com/forums/thread.jspa?threadID=611821
msg61892 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2008-01-31 10:03
Oracle confirms the issue. They will provide a patch.
msg66981 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2008-05-17 07:01
Jesus is the bsddb maintainer now.
msg80327 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2009-01-21 15:17
I committed this patch to the imminent pybsddb 4.6.4. This will be available soon in http://www.jcea.es/programacion/pybsddb.htm, and in future Python 2.7. The function is only available if you are using Berkeley DB 4.7 or newer, since 4.6 was very buggy.
History
Date User Action Args
2022-04-11 14:56:27 admin set github: 45732
2009-01-21 15:17:52 jcea set status: open -> closedresolution: acceptedmessages: +
2008-05-17 07:01:58 gregory.p.smith set assignee: gregory.p.smith -> jceamessages: +
2008-02-05 14:07:15 donmez set nosy: + donmez
2008-01-31 10:03:54 jcea set messages: +
2008-01-30 09:54:34 christian.heimes set priority: normal
2008-01-29 21:35:30 jcea set messages: +
2008-01-29 17:41:18 jcea set nosy: + jcea
2007-11-25 00:27:37 georg.brandl set keywords: - rfetype: enhancement
2007-11-05 01:49:58 gregory.p.smith create