🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #29172

Re: Odd cleanfeed problem

#29172
From: Curt Welch
Date: Mon, 15 Jun 1998 00:00
29 lines
2320 bytes
Julio Sanchez <jsanchez@esegi.es> wrote:
> Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
> > (I had a problem with DB_File using updates/deletes (no inserts) in
> > an each loop; the loop tended to terminate early.)
>
> I have had all sorts of problems with hashes tied with DB_File.  My
> scripts would core dump or enter infinite loops now and then and I had
> to rebuild the db files so they keep on working for a few days more.
> Then rebuild, then...  I think I'm gonna scratch the whole thing or
> move to db 2.
>
> Maybe it has to do with the fact that updating or deleting entries
> whose key or data exceed the bucket size is something documented as
> not working reliably on db <= 2.0.  So YMMV.

With the berkeley DB package if you create an entry greater than the bucket
size and then overwrite it with one less than the bucket size it corrupts
the DB file.  It's very easy to reproduce - happens every time.  I think it
happens on all version < 2.0.  I never tried it on >= 2.0 versions.  When I
reported the problem I was told to wait until 2.0 came out and use that.  I
solved my problem by making sure I never wrote a key/value that was bigger
than the bucket size.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <19980615092012.237$dE@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <6lu4nq$i83$1@opal.southwind.net> <87zpfgl1b4.fsf@erlenstar.demon.co.uk> <897846749.943964@cabal> <87lnqzkfcw.fsf@erlenstar.demon.co.uk> <6m1cl1$jf5$1@news1.exit109.com> <87sol7itvd.fsf@erlenstar.demon.co.uk> <x090mzm326.fsf@pcjjsf.gmv.es>

Show Full Headers
Complete Article Headers
Message-ID: <19980615092012.237$dE@newsreader.com>
Subject: Re: Odd cleanfeed problem
Date: Mon, 15 Jun 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <6lu4nq$i83$1@opal.southwind.net> <87zpfgl1b4.fsf@erlenstar.demon.co.uk> <897846749.943964@cabal> <87lnqzkfcw.fsf@erlenstar.demon.co.uk> <6m1cl1$jf5$1@news1.exit109.com> <87sol7itvd.fsf@erlenstar.demon.co.uk> <x090mzm326.fsf@pcjjsf.gmv.es>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 362814275
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
Newsgroups: news.software.nntp