pmda: Pull ctdb statistics once per fetch
authorDavid Disseldorp <ddiss@suse.de>
Mon, 8 Aug 2011 09:15:06 +0000 (11:15 +0200)
committerDavid Disseldorp <ddiss@suse.de>
Tue, 6 Sep 2011 12:01:18 +0000 (14:01 +0200)
commit137b498c75c55c966999cd788f12ed9010cfed3a
tree378ed46d4784542c14a10d4f944244088402cd34
parent28df6fbf1273b8d095a2bc38dca6a6c35c5c31bd
pmda: Pull ctdb statistics once per fetch

Currently ctdb statistics are pulled in the PMDA fetch callback, which
results in a CTDB_CONTROL_STATISTICS call for each metric.
Do this once per fetch instead, and have the per-metric callbacks pull
data from the last counter cache.
utils/pmda/pmda_ctdb.c