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)
commit11ffbf4a58e737547b716c5235dee508c683c006
tree03ce24df3257691b46939ff9d795cc00cf6a0006
parent2f925f1e64acc46d994e7ee74dffeb8438128f20
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.

(This used to be ctdb commit 137b498c75c55c966999cd788f12ed9010cfed3a)
ctdb/utils/pmda/pmda_ctdb.c