projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a5fb5e
)
multi: initial work on hide_errors tweak
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 28 Feb 2012 12:23:25 +0000
(13:23 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 28 Feb 2012 12:23:25 +0000
(13:23 +0100)
src/filter_multi.cpp
patch
|
blob
|
history
diff --git
a/src/filter_multi.cpp
b/src/filter_multi.cpp
index
cfd0bfb
..
ed7169f
100644
(file)
--- 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<mp::Session, FrontendPtr> m_clients;
bool m_hide_unavailable;
boost::condition m_cond_session_ready;
std::map<mp::Session, FrontendPtr> m_clients;
bool m_hide_unavailable;
+ bool m_hide_errors;
multi_merge_type m_merge_type;
};
}
multi_merge_type m_merge_type;
};
}
@@
-144,6
+145,7
@@
namespace metaproxy_1 {
yf::Multi::Rep::Rep()
{
m_hide_unavailable = false;
yf::Multi::Rep::Rep()
{
m_hide_unavailable = false;
+ m_hide_errors = false;
m_merge_type = round_robin;
}
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;
}
{
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);
else if (!strcmp((const char *) ptr->name, "mergetype"))
{
std::string mergetype = mp::xml::get_text(ptr);