return; // no memory cache configured or a misconfiguration
if (IamWorkerProcess()) { // XXX: coordinator should not create MemStore
- const int64_t max_size = Store::Root().maxObjectSize();
- if (max_size == -1) {
+ const int64_t diskMaxSize = Store::Root().maxObjectSize();
+ if (diskMaxSize == -1) {
debugs(20, DBG_IMPORTANT, "WARNING: disk-cache maximum object size "
"is unlimited but mem-cache maximum object size is " <<
Ipc::Mem::PageSize() / 1024.0 << " KB");
- } else if (max_size > maxObjectSize()) {
+ } else if (diskMaxSize > maxObjectSize()) {
debugs(20, DBG_IMPORTANT, "WARNING: disk-cache maximum object size "
"is too large for mem-cache: " <<
- Store::Root().maxObjectSize() / 1024.0 << " KB > " <<
+ diskMaxSize / 1024.0 << " KB > " <<
maxObjectSize() / 1024.0 << " KB");
}
}