in reply to DBM file corruption?
Are you sharing the "database" with a C application (or some non-perl non-DB_File thing)?
I use DB_File all the time, and I'd really like to know exactly what you're doing?
Is the "database" being shared between perl applications (race conditions)?
Are you locking the "database" somehow?
Did you perhaps interupt the application whilst it was in the midst of writing to the database?
The only size limits I've heard of are on keys/values, usually when dealing with DB_RECNO (and bigger files would decrease performance, but i've not heard of corruption).
DB_File databases, with possibly the exception of DB_RECNO, are *usually* not portable accross systems, or at least not accross versions. Did you perhaps upgrade DB_File?
The fact that you're running WinNT is not of great help. You need to give us the perl version and more importantly the DB_File version
update:
P.S. - I don't like to call DB_File a DBM file, cause it's so much better than the others ;)
Also, and I can't believe I didn't focus on this first, please define "corruption". What is going wrong?
| ______crazyinsomniac_____________________________ Of all the things I've lost, I miss my mind the most. perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;" |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (crazyinsomniac) Re: DBM file corruption?
by skinnymofo (Scribe) on Jan 15, 2002 at 19:08 UTC |