Thread View: comp.bugs.4bsd
2 messages
2 total messages
Started by Ron Mcewen
Mon, 27 Jul 1992 19:40
bsd db deletion problem
Author: Ron Mcewen
Date: Mon, 27 Jul 1992 19:40
Date: Mon, 27 Jul 1992 19:40
33 lines
1578 bytes
1578 bytes
I using the Berkeley DB hash routines (recently picked up from gatekeeper.dec.com - all sccs id 5.?, updated as recently as 6/17/91), primarily using the supplied ndbm interface. I'm running them on a Sun Sparc 1+ under SunOS 4.1.1. I had a database corruption problem so I wrote a simple test program and discovered a problem when doing the following: A new database is created and opened. Records are added to it (small key and data (less than 50 characters total)). All the records are retrieved (they're there). All the records are successfully deleted (no non-zero return codes). Then, a call to dbm_firstkey returns a non-NULL key pointer (ack!!) which turns out to be some garbled part of what was previously in a data record. This problem does NOT happen when doing this with 100 or 1000 records, but does for a 10000 record database. Questions: Has this problem or a similar one been noted before? Is there a fix? Where is the best place to get the latest bug fixes and versions? An other ideas? Thank you. -- Ron McEwen | email : chucker@bnr.ca | phone: (613) 765-4591 Bell-Northern Research Ltd., Ottawa, Ontario, Canada
Re: bsd db deletion problem
Author: Mark Andrews
Date: Thu, 30 Jul 1992 14:45
Date: Thu, 30 Jul 1992 14:45
15 lines
940 bytes
940 bytes
In <1992Jul27.194056.26921@bnr.ca> chucker@bnr.ca (Ron Mcewen) writes: >I using the Berkeley DB hash routines (recently picked up >from gatekeeper.dec.com - all sccs id 5.?, updated as recently as >6/17/91), primarily using the supplied ndbm interface. I'm running them >on a Sun Sparc 1+ under SunOS 4.1.1. >Where is the best place to get the latest bug fixes and versions? The lastest version I found was available for anonymous ftp at okeefe.berkeley.edu as ~ftp/pub/db.tar.Z. Some of the files in the tar were dated last month. Mark
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads