/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
dir(collapsed.swap_dirn).updateCollapsed(collapsed);
}
+bool
+Store::Disks::smpAware() const
+{
+ for (int i = 0; i < Config.cacheSwap.n_configured; ++i) {
+ // A mix is not supported, but we conservatively check every
+ // dir because features like collapsed revalidation should
+ // currently be disabled if any dir is SMP-aware
+ if (dir(i).smpAware())
+ return true;
+ }
+ return false;
+}
+
/* Store::Disks globals that should be converted to use RegisteredRunner */
void
// Check for store_dirs_rebuilding because fatal() often calls us in early
// initialization phases, before store log is initialized and ready. Also,
- // some stores probably do not support log cleanup during Store rebuilding.
+ // some stores do not support log cleanup during Store rebuilding.
if (StoreController::store_dirs_rebuilding) {
debugs(20, DBG_IMPORTANT, "Not currently OK to rewrite swap log.");
debugs(20, DBG_IMPORTANT, "storeDirWriteCleanLogs: Operation aborted.");