Skip to content

Commit

Permalink
HPCC-30599 Minor changes (no functional change)
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Dec 8, 2023
1 parent d8db4d3 commit edff582
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions common/thorhelper/thorcommon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,10 @@ class CStatsContextLogger : public CSimpleInterfaceOf<IContextLogger>
mutable CRuntimeStatisticCollection stats;
public:
CStatsContextLogger(const CRuntimeStatisticCollection &_mapping, const LogMsgJobInfo & _job=unknownJob) : job(_job), stats(_mapping) {}

void reset()
{
stats.reset();
}
virtual void CTXLOGva(const LogMsgCategory & cat, const LogMsgJobInfo & job, LogMsgCode code, const char *format, va_list args) const override __attribute__((format(printf,5,0)))
{
VALOG(cat, job, code, format, args);
Expand Down Expand Up @@ -762,10 +765,6 @@ class CStatsContextLogger : public CSimpleInterfaceOf<IContextLogger>
previous.updateDelta(to, stats);
}
virtual const LogMsgJobInfo & queryJob() const override { return job; }
void reset()
{
stats.reset();
}
};

extern THORHELPER_API bool isActivitySink(ThorActivityKind kind);
Expand Down

0 comments on commit edff582

Please sign in to comment.