summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-07-12 00:21:47 +0200
committerGitHub <noreply@github.com>2017-07-12 00:21:47 +0200
commit382199a567afed3795f13591cd41080906ffb87e (patch)
tree7b85232b94cbb340b2586864057b786f7813d14a /Bugzilla
parent01e09b0b05a92bf1a95e09118d05259a4c70a7c4 (diff)
downloadbugzilla-382199a567afed3795f13591cd41080906ffb87e.tar.gz
bugzilla-382199a567afed3795f13591cd41080906ffb87e.tar.xz
Bug 1378999 - Add update/new stats to bulk_indexer verbose mode
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Elastic/Indexer.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Elastic/Indexer.pm b/Bugzilla/Elastic/Indexer.pm
index b691e0687..35c9bb119 100644
--- a/Bugzilla/Elastic/Indexer.pm
+++ b/Bugzilla/Elastic/Indexer.pm
@@ -181,6 +181,11 @@ sub bulk_load {
$self->_bulk_load_ids($bulk, $class, $new_ids) if @$new_ids;
$self->_bulk_load_ids($bulk, $class, $updated_ids) if @$updated_ids;
+
+ return {
+ new => scalar @$new_ids,
+ updated => scalar @$updated_ids,
+ };
}
sub _select_all_ids {