From 1856d16cee33e8cc3b375c6a6fd2b2bea8c59f74 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 28 Feb 2012 13:23:25 +0100 Subject: [PATCH] multi: initial work on hide_errors tweak --- src/filter_multi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 1.7.10.4