Bugzilla – Attachment 85121 Details for
Bug 21872
Elasticsearch indexing faster by making it multi-threaded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21872: Remove duplicate modulo condition in authorities iterator
Bug-21872-Remove-duplicate-modulo-condition-in-aut.patch (text/plain), 1.67 KB, created by
David Gustafsson
on 2019-02-14 15:00:44 UTC
(
hide
)
Description:
Bug 21872: Remove duplicate modulo condition in authorities iterator
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2019-02-14 15:00:44 UTC
Size:
1.67 KB
patch
obsolete
>From 1b1a7983953e86a7a87eeac46bc611f3dbb27ef8 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Thu, 14 Feb 2019 15:59:27 +0100 >Subject: [PATCH] Bug 21872: Remove duplicate modulo condition in authorities > iterator > >--- > Koha/BiblioUtils.pm | 2 +- > Koha/MetadataRecord/Authority.pm | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm >index 94e7f089e9..b469cc4054 100644 >--- a/Koha/BiblioUtils.pm >+++ b/Koha/BiblioUtils.pm >@@ -129,7 +129,7 @@ sub get_all_biblios_iterator { > if ($options{slice}) { > $slice_count = $options{slice}->{count}; > $slice_modulo = $options{slice}->{index}; >- $search_terms = \[ ' mod(biblionumber, ?) = ?', $slice_count, $slice_modulo]; >+ $search_terms = \[ 'mod(biblionumber, ?) = ?', $slice_count, $slice_modulo ]; > } > > my $database = Koha::Database->new(); >diff --git a/Koha/MetadataRecord/Authority.pm b/Koha/MetadataRecord/Authority.pm >index 9f939af07a..2948f102c9 100644 >--- a/Koha/MetadataRecord/Authority.pm >+++ b/Koha/MetadataRecord/Authority.pm >@@ -180,11 +180,10 @@ sub get_all_authorities_iterator { > if ($options{slice}) { > $slice_count = $options{slice}->{count}; > $slice_modulo = $options{slice}->{index}; >- $search_terms->{authid} = \[ ' mod ? = ?', $slice_count, $slice_modulo]; > $search_terms = { > '-and' => [ >- $search_terms, >- \[ ' mod(authid, ?) = ?', $slice_count, $slice_modulo] >+ %{$search_terms}, >+ \[ 'mod(authid, ?) = ?', $slice_count, $slice_modulo ] > ] > }; > } >-- >2.11.0
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 21872
:
82582
|
82583
|
82584
|
82585
|
82586
|
82598
|
82599
|
82780
|
85119
|
85121
|
85975
|
85976
|
85977
|
85978
|
85979
|
86053
|
86054
|
86055
|
86056
|
86057
|
89109
|
89110
|
89111
|
89112
|
89113