MXS-1777: Add an EMAverage to the server struct, and a new slave selection criteria.

This is to support calculating the average from a session, and the slave selection criteria to be able to route based on averages. This commit, like the next one, have TODOs which you should feel free to comment on. Undecided things.
This commit is contained in:
Niclas Antti
2018-07-26 10:21:39 +03:00
parent cdea8aa7be
commit 1e6509423a
6 changed files with 60 additions and 8 deletions

View File

@ -62,7 +62,9 @@ void CumulativeAverage::reset()
}
EMAverage::EMAverage(double min_alpha, double max_alpha, int sample_max) :
m_min_alpha{min_alpha}, m_max_alpha{max_alpha}, m_sample_max{sample_max}
m_min_alpha{min_alpha},
m_max_alpha{max_alpha},
m_sample_max{sample_max}
{
}