flock vs fnctl

Rob Siemborski rjs3 at andrew.cmu.edu
Tue Jul 22 17:11:39 EDT 2003


On Tue, 22 Jul 2003, Scott Adkins wrote:

> In version 2.0.16, flock() was being used for file locking.  However, in
> 2.2.1, I am wondering if this is still the case.  I looked in the configure
> output of 2.0.16 and it detects the flock() function call, but in the output
> of 2.2.1, it doesn't even look like it checks for flock().  Has the default
> changed or the behavior for locking changed between those versions?  The
> docs seem to indicate that flock() is still the default, if it is detected.

No, fcntl is not the default.  I'll have to look at the documentation.

--with-lock=flock should fix this for you though if it makes a difference.

I'd have to think about whats going on with your skiplist, it sounds wrong
but it could be an odd case of some sort.  (Its possible you also hit a
time when it was checkpointing, but that wouldn't happen every time).

Skiplist should *always* be faster than a flat database for any sort of
update operation.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper





More information about the Info-cyrus mailing list