Bugs item #1725856, was opened at 2007-05-25 18:25
Message generated for change (Comment added) made by gagenellina
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1725856&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Charles Hixson (quixo)
Assigned to: Nobody/Anonymous (nobody)
Summary: bsddb.btopen . del of record doesn't update index
Initial Comment:
A ram -resident database is creaed with btopen
10 records are added, keyed by sequence, value is sequence + 1 (both converted
to strings).
I check to ensure that all of the records have been added.
I delete the first record, check the keys again, and it still works.
I delete the first record, check the keys again, and it fails, thusly:
python testbtopen.py
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
0
1
2
3
4
5
6
7
8
9
0 1
['1', '2', '3', '4', '5', '6', '7', '8', '9']
1
2
3
4
5
6
7
8
9
Traceback (most recent call last):
File "testbtopen.py", line 13, in ?
i = db.first()[0]
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in
_checkCursor
_bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found')
[EMAIL PROTECTED]:~/projects/Python/bsddb$ python testbtopen.py
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
0
1
2
3
4
5
6
7
8
9
0 1
['1', '2', '3', '4', '5', '6', '7', '8', '9']
1
2
3
4
5
6
7
8
9
Traceback (most recent call last):
File "testbtopen.py", line 13, in ?
i = db.first()[0]
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in
_checkCursor
_bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found')
----------------------------------------------------------------------
Comment By: Gabriel Genellina (gagenellina)
Date: 2007-05-27 08:17
Message:
Logged In: YES
user_id=479790
Originator: NO
FWIW, the same thing happens on 2.5.1 on Windows. With the funny stack
trace too (PIL is not remotely related, PIL/__init__.py being almost
empty).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1725856&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com