MXS-1632: Add per-server read-write statistics

The read-write distribution in readwritesplit is now stored in a map
partitioned by the servers that the router has used. Currently, the
statistics for removed servers aren't dropped so some filtering still
needs to be added.
This commit is contained in:
Markus Mäkelä
2018-09-11 00:58:33 +03:00
parent 62788f39e1
commit 805840dcdc
4 changed files with 100 additions and 11 deletions

View File

@ -490,6 +490,12 @@ public:
return get_local_value();
}
// Dereference operator
T& operator*()
{
return *get_local_value();
}
/**
* Assign a value
*