RPM Community Forums

Mailing List Message of <rpm-devel>

Re: database support in rpm

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 31 Jul 2007 - 16:59:11 CEST
Message-Id: <9F8005D8-4F95-490E-8541-1E65B8D5CBA6@mac.com>

On Jul 31, 2007, at 10:39 AM, Ralf S. Engelschall wrote:

>
> We are using fcntl(2) locking for DB in RPM since over 5 years now and
> never encountered any problems. And we drive RPM on really lots of
> different platforms. So, I expect that fcntl(2) locking will not make
> any problems at all...

With or without DB_INIT_CDB, i.e. with concurrent write acces or not?

DB_INIT_CDB provides shared multiple readers <-> single exclusive writer
transparently. I.e. every bleeping application does not have to be  
insturmented
with locking primitives.

But DB_INIT_CDB transparent locking is voided if one closes a dbenv.

73 de Jeff
Received on Tue Jul 31 16:59:04 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.