From f6c8aec048d60523b78957a6662e37f42234bd6e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 23 Feb 2012 11:41:44 +0100 Subject: [PATCH] Avoid re-using backends for Explain searches This fixes a bug where re-used IR-Explain---1 searches would result in an empty response. --- src/filter_zoom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index a79a19c..0931029 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -815,7 +815,8 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( int *proxy_step) { std::list::const_iterator map_it; - if (m_backend && m_backend->m_frontend_database == database) + if (m_backend && !m_backend->enable_explain && + m_backend->m_frontend_database == database) return m_backend; std::string input_args; -- 1.7.10.4