Re: DB_VERSION redux

Markus Hoenicka <[email protected]> Wed, 27 Sep 2006 13:26:10 +0200
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
David Nebauer <[email protected]> was heard to say:

> I ran the server in standalone mode to capture log output and, lo and
> behold, the version file updated on the first database read.  No idea
> why earlier attempts failed.
>

Come to think of it, the version file will not be updated if you run refdbd -a.
This will update the main database if necessary, but the version file gets
updated only as soon as refdbd forks to handle a client request. I probably ran
refdbd -s after each refdbd -a run to see whether refdbd starts up correctly.
Therefore I always saw the version file being updated.

Would it be hard to change your install scripts and get rid of DB_VERSION in
favour of a refdbd -c call? I'd suggest to drop DB_VERSION then. I could also
make the refdbd -c output easier to parse.

regards,
Markus

-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV