UsingSmp() is not the right condition to detect whether we are using a shared
cache because shared memory caching may be disabled and because Coordinator
does not use a shared memory cache even if shared caching is enabled.
The assertion was triggered by icons being added to Coordinator local memory
cache. TODO: Coordinator does not need to cache [icons] at all.
if (new_status == mem_status)
return;
- if (UsingSmp()) {
+ // are we using a shared memory cache?
+ if (Config.memShared && IamWorkerProcess()) {
assert(new_status != IN_MEMORY); // we do not call this otherwise
// This method was designed to update replacement policy, not to
// actually purge something from the memory cache (TODO: rename?).