RPM Community Forums

Mailing List Message of <rpm-users>

Re: About the consistency of /var/lib/rpm/__db.00?

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 22 May 2010 - 05:20:02 CEST
Message-id: <C75A9607-5E25-463E-91F7-BEC17C98F9B3@mac.com>

On May 21, 2010, at 10:52 PM, Marc MERLIN wrote:

> Right. So it sounds like
> 1) __db* files can't be turned off since for most users they are useful (not
>   for us though). 

I'm not sure how you arrive at this conclusion. Dataabses (with concurrent access) locks,
the locks are in __db* files, and only userst need locks?!?

But there are many alternatives, including just disabling all locks.

> 2) I could hack rpm to find all the exit paths or wrap it and auto delete
>   the db files on exit

Its easier than that. There is code that removed __db* files at end-of
execution. It very much was not the right thing to do, but Have fun!

> 3) if I have an rpmdb synced over a machine that has non matching __db*
>   files, nothing really bad will happen, but rpm may act weird and it's
>   just better not to get in that situation, potentially via #2 or other
>   means.

Why sync files that aren't useful in the first place?

73 de jeff
Received on Sat May 22 05:20:27 2010
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.