[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: back-bdb DB_RECOVER and soft restart



Matthew Hardin writes:
> On startup each instance of back-bdb will do the following:
> (...)
> 2. Attempt to place a write lock on the lock file. (...)
> (...)
> 5. Wait for a read lock on the lock file and leave it there for the
>    life of the back-bdb instance.

Why get a read lock when you already have a write lock?

Besides, if you will use libraries/liblutil/lockf.c:lutil_lockf, that
may use lockf() which only supports 'locks', not 'read/write locks'.

-- 
Hallvard