Bugzilla – Attachment 22508 Details for
Bug 11078
rebuild_zebra.pl can lose updates due to race condition during full rebuilds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11078 Add locking to rebuild_zebra (QA Patch 2 10/28)
0004-Bug-11078-Add-locking-to-rebuild_zebra-QA-Patch-2-10.patch (text/plain), 1.30 KB, created by
Doug Kingston
on 2013-10-29 06:35:15 UTC
(
hide
)
Description:
Bug 11078 Add locking to rebuild_zebra (QA Patch 2 10/28)
Filename:
MIME Type:
Creator:
Doug Kingston
Created:
2013-10-29 06:35:15 UTC
Size:
1.30 KB
patch
obsolete
>From 6df353fb5e406a9b9631172849e49a3a4ddb6019 Mon Sep 17 00:00:00 2001 >From: Doug Kingston <dpk@randomnotes.org> >Date: Mon, 28 Oct 2013 23:30:31 -0700 >Subject: [PATCH 4/4] Bug 11078 Add locking to rebuild_zebra (QA Patch 2 > 10/28) > >In the event lockdir is not specified in the koha-conf.xml file >which will occur for old installations, default the lockdir to a >sensible default (/var/lock). >--- > misc/migration_tools/rebuild_zebra.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl >index e18725c..8b77686 100755 >--- a/misc/migration_tools/rebuild_zebra.pl >+++ b/misc/migration_tools/rebuild_zebra.pl >@@ -143,7 +143,9 @@ my ($biblioitemnumbertagfield,$biblioitemnumbertagsubfield) = &GetMarcFromKohaFi > # We need to create our own lock directory which incorporates the database instance > # we are indexing to facilitate multiple instances on the same machine. > >-my $lockdir = C4::Context->config("lockdir") . "/koha_rebuild_zebra_" . C4::Context->config("database"); >+my $lockdir = C4::Context->config("lockdir"); >+$lockdir = "/var/lock" if $lockdir == ""; >+$lockdir .= ("/koha_rebuild_zebra_" . C4::Context->config("database")); > mkpath($lockdir, 0, 0755) unless (-d $lockdir); > my $lockfile = $lockdir . "/lock"; > >-- >1.7.9.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11078
:
22044
|
22045
|
22205
|
22458
|
22506
|
22508
|
22532
|
22985
|
22992
|
23220
|
23221
|
23573
|
23574
|
25114
|
25172
|
25330
|
25412
|
25446
|
25447