mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Move allocation of analyzer_hash to file_mgr
This commit is contained in:
parent
607d72f7b9
commit
743d7e96f5
4 changed files with 19 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue