Ken,
As the author of pmdaCache, what is the behaviour you would expect
of the following sequence of calls (assuming that the cached file
for the indom exists and contains entries for ook and eek):
pmdaCacheOp(indom, PMDA_CACHE_LOAD);
pmdaCacheStore(indom, PMDA_CACHE_ADD, "ook", NULL);
pmdaCacheStore(indom, PMDA_CACHE_ADD, "eek", NULL);
pmdaCacheOp(indom, PMDA_CACHE_STORE);
pmdaCacheOp(indom, PMDA_CACHE_LOAD);
In particular, how many entries will be in the cache after CACHE_LOAD,
how many will be active and how many will be inactive?
The reason I'm asking is because I've had to chase a bug in my code
which did just that and broke pmdaInstance callback.
max
|