From: Adam Dickmeiss Date: Tue, 28 Feb 2012 12:23:25 +0000 (+0100) Subject: multi: initial work on hide_errors tweak X-Git-Tag: v1.3.25~6^2~4 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1856d16cee33e8cc3b375c6a6fd2b2bea8c59f74;p=metaproxy-moved-to-github.git multi: initial work on hide_errors tweak --- diff --git a/src/filter_multi.cpp b/src/filter_multi.cpp index cfd0bfb..ed7169f 100644 --- a/src/filter_multi.cpp +++ b/src/filter_multi.cpp @@ -136,6 +136,7 @@ namespace metaproxy_1 { boost::condition m_cond_session_ready; std::map m_clients; bool m_hide_unavailable; + bool m_hide_errors; multi_merge_type m_merge_type; }; } @@ -144,6 +145,7 @@ namespace metaproxy_1 { yf::Multi::Rep::Rep() { m_hide_unavailable = false; + m_hide_errors = false; m_merge_type = round_robin; } @@ -1287,6 +1289,10 @@ void mp::filter::Multi::configure(const xmlNode * ptr, bool test_only, { m_p->m_hide_unavailable = true; } + else if (!strcmp((const char *) ptr->name, "hideerrors")) + { + m_p->m_hide_errors = true; + } else if (!strcmp((const char *) ptr->name, "mergetype")) { std::string mergetype = mp::xml::get_text(ptr);