]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polished MemStore::init() code.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 11 May 2011 22:21:13 +0000 (16:21 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 11 May 2011 22:21:13 +0000 (16:21 -0600)
No runtime changes expected.

src/MemStore.cc

index dba2d1cc708f54916a4b856b7a51396e9e82d32e..867447481904503b00ff7cb0d60973dff69fb05f 100644 (file)
@@ -34,15 +34,15 @@ MemStore::init() {
         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");
         }
     }