Reduce weird-stats overhead

observe_weird_stats only needs to be called when cluster_ss_request is
called for the weirds.statistics stat, not for all of them.
This commit is contained in:
Justin Azoff 2019-03-27 11:02:27 -04:00
parent dbf5d5fc95
commit 73954bca27

View file

@ -84,6 +84,8 @@ function observe_weird_stats()
# less synchronized? # less synchronized?
event SumStats::cluster_ss_request(uid: string, ss_name: string, cleanup: bool) &priority=10 event SumStats::cluster_ss_request(uid: string, ss_name: string, cleanup: bool) &priority=10
{ {
if ( ss_name != "weirds.statistics" )
return;
observe_weird_stats(); observe_weird_stats();
} }