[ic] LockType ignored?

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Thu May 9 05:40:02 2002


Bill Carr <bill@worldwideimpact.com> writes:

> Mysql 3.23.47, Linux 2.4.19, Sessions on NFS, LVS-DR (martian patch), ic
> 4.8.3, (What I am about to say looks the same in 4.8.5 but I have not
> installed it yet).
> 
> It looks to me that global var LockType is ignored. I was having some
> slow page delivery that I thought was flock related. I tried this
> command:
> #  strace -f /etc/init.d/interchange start 2>&1 | grep -i flock
> and saw many flock calls even though interchange.cfg and
> interchange.structure reported LockType = fcntl.
> 
> I hard coded:
> $lock_function = \&fcntl_lock;
> $unlock_function = \&fcntl_unlock;
> in Vend::Util.pm and ran the above command and did not see any more
> flock calls.

[...]

> 
> 1. It looks like set_lock_type should be called if $Global::LockType but
> is not.

Yes, that's right. Looks like a bug for me. Please report it to
the BTS.

Has anyone an idea where to call that function ?

Ciao
        Racke

-- 
Think of it !

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)