Fixed an issue causing reporter messages from the metrics framework.

This commit is contained in:
Seth Hall 2013-01-05 22:27:17 -05:00
parent 9366411cf4
commit bcd7fe114d

View file

@ -174,7 +174,7 @@ global index_requests: table[string, string, string, Index] of ResultVal &read_e
# This variable is maintained by managers to prevent overwhelming communication due # This variable is maintained by managers to prevent overwhelming communication due
# to too many intermediate updates. Each metric filter is tracked separately so that # to too many intermediate updates. Each metric filter is tracked separately so that
# one metric won't overwhelm and degrade other quieter metrics. # one metric won't overwhelm and degrade other quieter metrics.
global outstanding_global_views: table[string, string] of count; global outstanding_global_views: table[string, string] of count &default=0;
# Managers handle logging. # Managers handle logging.
event Metrics::finish_period(filter: Filter) event Metrics::finish_period(filter: Filter)
@ -226,7 +226,9 @@ event Metrics::cluster_index_response(uid: string, id: string, filter_name: stri
} }
delete done_with[uid]; delete done_with[uid];
delete index_requests[uid, id, filter_name, index]; delete index_requests[uid, id, filter_name, index];
--outstanding_global_views[id, filter_name]; # Check that there is an outstanding view before subtracting.
if ( outstanding_global_views[id, filter_name] > 0 )
--outstanding_global_views[id, filter_name];
} }
} }