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.

classification
Title: bsddb's DB.keys() method ignores transaction argument
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gregory.p.smith Nosy List: exarkun, gregory.p.smith, loewis
Priority: high Keywords: patch

Created on 2004-08-27 06:01 by exarkun, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
_bsddb.c.patch exarkun, 2004-08-27 06:01 Patch to not ignore transaction argument
dbdeadlock.py exarkun, 2004-08-27 06:01 Demo of current problem
Messages (4)
msg46792 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2004-08-27 06:01
_DB_make_list in _bsddb.c's accepts a transaction
argument but ignores it.  This makes db.keys(),
db.values(), and db.items() somewhat broken.

Patch and quick demo attached.
msg46793 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-29 16:00
Logged In: YES 
user_id=21627

The patch looks wrong to me. Why are you passing &txn, not txn?
msg46794 - (view) Author: Jean-Paul Calderone (exarkun) * (Python committer) Date: 2004-08-30 14:50
Logged In: YES 
user_id=366566

You're right.  Not sure what I was thinking.  The test
script doesn't even run successfully w/ the patch as
attached.  Passing txn instead of &txn lets it complete
correctly.
msg46795 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2004-09-04 01:41
Logged In: YES 
user_id=413

thanks.  i've committed the fix to HEAD and to release23_maint.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40830
2004-08-27 06:01:17exarkuncreate