summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-03-17 21:53:57 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-17 21:53:57 +0100
commit1ad85fd04a2268a660fbf35068e730dda917d137 (patch)
tree3155f5d6d82532810cb653fa04b7e466199f7e71 /Bugzilla.pm
parent4cc54c4c9acd39b1b0850c9d5a937f5f909d18d0 (diff)
downloadbugzilla-1ad85fd04a2268a660fbf35068e730dda917d137.tar.gz
bugzilla-1ad85fd04a2268a660fbf35068e730dda917d137.tar.xz
Bug 1307485 - Add code to run a subset of buglist.cgi search queries against the ES backend
This not the cause of test failures, so should live on in master now.
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index bd410364e..ecaca9151 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -23,6 +23,7 @@ BEGIN {
use Bugzilla::Auth;
use Bugzilla::Auth::Persist::Cookie;
use Bugzilla::CGI;
+use Bugzilla::Elastic;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::DB;
@@ -786,6 +787,11 @@ sub memcached {
}
}
+sub elastic {
+ my ($class) = @_;
+ $class->process_cache->{elastic} //= Bugzilla::Elastic->new();
+}
+
# Private methods
# Per-process cleanup. Note that this is a plain subroutine, not a method,