On Mon, 25 Jan 2010 07:34:42 +1100, Ken McDonell wrote:
kenj> Max,
kenj> I'd expect 2 entries (assuming the initial PMDA_CACHE_LOAD loads
kenj> nothing), and both of these should be inactive.
kenj> As the man page says ...
kenj> This operation loads the cache from the external file, and then
kenj> all cache entries are marked inactive, and the additional data
kenj> pointer is set to NULL. Consequently, a PMDA is only likely to
kenj> perform this operation once per execution.
kenj> What are you seeing?
I'm seeing 4 entries: 2 active, 2 inactive, one for each instance ID,
i.e 0 (ook) active and inactive, 1 (eek) active and inactive.
kenj> Is there some reason you need to call PMDA_CACHE_LOAD a second time?
It was a bug in my code, I did not want to do that but it could be
considered that other people may.
max
|