Move allocation of analyzer_hash to file_mgr

This commit is contained in:
Tim Wojtulewicz 2023-09-02 16:00:30 -07:00
parent 607d72f7b9
commit 743d7e96f5
4 changed files with 19 additions and 14 deletions

View file

@ -32,6 +32,11 @@ class Analyzer;
} // namespace analyzer
namespace detail
{
class CompositeHash;
}
namespace file_analysis
{
@ -361,6 +366,8 @@ public:
uint64_t CumulativeFiles() { return cumulative_files; }
zeek::detail::CompositeHash* GetAnalyzerHash() const { return analyzer_hash; }
protected:
friend class detail::FileTimer;
@ -442,6 +449,8 @@ private:
size_t cumulative_files;
size_t max_files;
zeek::detail::CompositeHash* analyzer_hash = nullptr;
};
/**