Add verbose backend status helper

This allows the same verbose information to be logged in the cases where
it is of use. Mostly this information can be used to figure out why a
certain session was closed.
This commit is contained in:
Markus Mäkelä
2019-09-19 13:22:58 +03:00
parent fd0c156655
commit f46f873dc1
3 changed files with 17 additions and 10 deletions

View File

@ -301,6 +301,19 @@ private:
});
}
std::string get_verbose_status()
{
std::string status;
for (const auto& a : m_backends)
{
status += "\n";
status += a->get_verbose_status();
}
return status;
}
inline bool is_large_query(GWBUF* buf)
{
uint32_t buflen = gwbuf_length(buf);