diff --git a/common/thorhelper/thorcommon.hpp b/common/thorhelper/thorcommon.hpp index ba343aa8563..5ed38751c89 100644 --- a/common/thorhelper/thorcommon.hpp +++ b/common/thorhelper/thorcommon.hpp @@ -676,7 +676,7 @@ class THORHELPER_API IndirectCodeContext : implements ICodeContext class CStatsContextLogger : public CSimpleInterfaceOf { protected: - const LogMsgJobInfo & job; + const LogMsgJobInfo job; unsigned traceLevel = 1; LogTrace logTrace; mutable CRuntimeStatisticCollection stats; diff --git a/system/jlib/jstats.h b/system/jlib/jstats.h index 24c2d3674e7..3d6b5069576 100644 --- a/system/jlib/jstats.h +++ b/system/jlib/jstats.h @@ -492,6 +492,7 @@ extern const jlib_decl StatisticsMapping diskLocalStatistics; extern const jlib_decl StatisticsMapping diskRemoteStatistics; extern const jlib_decl StatisticsMapping diskReadRemoteStatistics; extern const jlib_decl StatisticsMapping diskWriteRemoteStatistics; +extern const jlib_decl StatisticsMapping jhtreeCacheStatistics; //--------------------------------------------------------------------------------------------------------------------- @@ -943,6 +944,4 @@ class jlib_decl RuntimeStatisticTarget : implements IStatisticTarget extern jlib_decl StringBuffer & formatMoney(StringBuffer &out, unsigned __int64 value); extern jlib_decl stat_type aggregateStatistic(StatisticKind kind, IStatisticCollection * statsCollection); -extern jlib_decl const StatisticsMapping jhtreeCacheStatistics; - #endif