Bugzilla – Attachment 46018 Details for
Bug 15188
remove_unused_authorities.pl will delete all authorities if zebra is not running
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15188 - remove_unused_authorities.pl dies if zebra server is not running
Bug-15188---removeunusedauthoritiespl-dies-if-zebr.patch (text/plain), 940 bytes, created by
Alex Arnaud
on 2015-12-29 15:47:15 UTC
(
hide
)
Description:
Bug 15188 - remove_unused_authorities.pl dies if zebra server is not running
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2015-12-29 15:47:15 UTC
Size:
940 bytes
patch
obsolete
>From 6ec3a0972f89bc1fd81682a7502d52cf93cb5a7d Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 29 Dec 2015 16:46:38 +0100 >Subject: [PATCH] Bug 15188 - remove_unused_authorities.pl dies if zebra > server is not running > >--- > misc/migration_tools/remove_unused_authorities.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/misc/migration_tools/remove_unused_authorities.pl b/misc/migration_tools/remove_unused_authorities.pl >index 2509318..af8897a 100755 >--- a/misc/migration_tools/remove_unused_authorities.pl >+++ b/misc/migration_tools/remove_unused_authorities.pl >@@ -45,6 +45,10 @@ if ($test) { > print "testing only, authorities will not be deleted.\n"; > } > >+if (C4::Context->Zconn("biblioserver",0)->errcode() == 10000) { >+ die "Zebra server seems not to be available. This script needs Zebra runs." >+} >+ > my $dbh=C4::Context->dbh; > my $thresholdmin=0; > my $thresholdmax=0; >-- >1.7.10.4
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 15188
:
45257
|
46018
|
46741
|
46849
|
46850