[Yum-devel] [PATCH] Fix /var/lib/rpm/Packages mtime race. BZ 973375

Zdenek Pavlas zpavlas at redhat.com
Tue Jun 18 14:46:11 UTC 2013


>  The below patch breaks the common case, making the generation of the

I see.. I was considering just the /version <= rpmdb < now case,
where it'd produce rpmdb < /version so the cache is valid.

> "/version" cache mostly useless (it's always generated within the same
> second that we last altered the rpmdb AFAIK).

Likely.  But the next rpmdb access saves /version with new
timestamp so THEN it's cached. Still, we unnecessarily give
up one cache hit (on a fs with 1s mtime precision).


More information about the Yum-devel mailing list