/*
- * $Id$
- *
- * DEBUG: section 16 Cache Manager API
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
*/
+/* DEBUG: section 16 Cache Manager API */
+
#include "squid.h"
#include "base/TextException.h"
#include "ipc/Messages.h"
#include "ipc/TypedMsgHdr.h"
#include "mgr/CountersAction.h"
-#include "protos.h"
#include "SquidTime.h"
#include "Store.h"
+#include "tools.h"
-extern void GetCountersStats(Mgr::CountersActionData& stats);
-extern void DumpCountersStats(Mgr::CountersActionData& stats, StoreEntry* sentry);
+void GetCountersStats(Mgr::CountersActionData& stats);
+void DumpCountersStats(Mgr::CountersActionData& stats, StoreEntry* sentry);
Mgr::CountersActionData::CountersActionData()
{
- xmemset(this, 0, sizeof(*this));
+ memset(this, 0, sizeof(*this));
}
Mgr::CountersActionData&
swap_ins += stats.swap_ins;
swap_files_cleaned += stats.swap_files_cleaned;
aborted_requests += stats.aborted_requests;
+ hitValidationAttempts += stats.hitValidationAttempts;
+ hitValidationRefusalsDueToLocking += stats.hitValidationRefusalsDueToLocking;
+ hitValidationRefusalsDueToZeroSize += stats.hitValidationRefusalsDueToZeroSize;
+ hitValidationRefusalsDueToTimeLimit += stats.hitValidationRefusalsDueToTimeLimit;
+ hitValidationFailures += stats.hitValidationFailures;
return *this;
}
return new CountersAction(cmd);
}
-Mgr::CountersAction::CountersAction(const CommandPointer &cmd):
- Action(cmd), data()
+Mgr::CountersAction::CountersAction(const CommandPointer &aCmd):
+ Action(aCmd), data()
{
debugs(16, 5, HERE);
}
msg.checkType(Ipc::mtCacheMgrResponse);
msg.getPod(data);
}
+