[Koha-bugs] [Bug 11078] rebuild_zebra.pl can lose updates due to race condition during full rebuilds

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 30 02:13:44 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11078

--- Comment #15 from Robin Sheat <robin at catalyst.net.nz> ---
(In reply to Doug Kingston from comment #13)
> I don't think we can use that pattern because it relies on running as root. 

Well, I'm trying to figure a way that'll work with the scheme that the packages
currently use. For them we can expect /var/lock/koha/instancename to exist and
have the correct user permissions, as it's already used for locking zebrasrv.
So we could have a rebuild-zebra.lck (or whatever) lock file under there.

> Since /var/lock is often on tmpfs its gone after a reboot and we can't rely
> in
> a subdirectory maintained.  I think this is now in the safest, most
> maintable state.

We can rely on it for packages as it's created at boot, if needed (and is
already being used.)

> Fair enough, I'll update it to use /var/lock if the lockdir variable is not
> defined.

Cool.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list