Change file_analysis::Manager::ignored to use std::set

This commit is contained in:
Jon Siwek 2019-08-14 13:46:40 -07:00
parent 814d0ea969
commit 03c50fe520
3 changed files with 8 additions and 4 deletions

View file

@ -1,4 +1,8 @@
3.1.0-dev.52 | 2019-08-14 13:46:40 -0700
* Change file_analysis::Manager::ignored to use std::set (Jon Siwek, Corelight)
3.1.0-dev.50 | 2019-08-14 12:32:56 -0700
* Update documentation for string_to_pattern BIF (Jon Siwek, Corelight)

View file

@ -1 +1 @@
3.1.0-dev.50
3.1.0-dev.52

View file

@ -4,8 +4,8 @@
#define FILE_ANALYSIS_MANAGER_H
#include <string>
#include <queue>
#include <unordered_set>
#include <set>
#include <map>
#include "Dict.h"
#include "Net.h"
@ -406,7 +406,7 @@ private:
TagSet* LookupMIMEType(const string& mtype, bool add_if_not_found);
std::map<string, File*> id_map; /**< Map file ID to file_analysis::File records. */
std::unordered_set<string> ignored; /**< Ignored files. Will be finally removed on EOF. */
std::set<string> ignored; /**< Ignored files. Will be finally removed on EOF. */
string current_file_id; /**< Hash of what get_file_handle event sets. */
RuleFileMagicState* magic_state; /**< File magic signature match state. */
MIMEMap mime_types;/**< Mapping of MIME types to analyzers. */