Avoid re-using backends for Explain searches
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Feb 2012 10:41:44 +0000 (11:41 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Feb 2012 10:41:44 +0000 (11:41 +0100)
This fixes a bug where re-used IR-Explain---1 searches would
result in an empty response.

src/filter_zoom.cpp

index a79a19c..0931029 100644 (file)
@@ -815,7 +815,8 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
     int *proxy_step)
 {
     std::list<BackendPtr>::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;