mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
smallwrite: add report dedupe check
This commit is contained in:
parent
411317639b
commit
7c4490cfc9
@ -29,6 +29,7 @@
|
|||||||
#include "rose_build_impl.h"
|
#include "rose_build_impl.h"
|
||||||
#include "nfa/castlecompile.h"
|
#include "nfa/castlecompile.h"
|
||||||
#include "nfagraph/ng_repeat.h"
|
#include "nfagraph/ng_repeat.h"
|
||||||
|
#include "smallwrite/smallwrite_build.h"
|
||||||
#include "util/compile_context.h"
|
#include "util/compile_context.h"
|
||||||
#include "util/boundary_reports.h"
|
#include "util/boundary_reports.h"
|
||||||
#include "util/make_unique.h"
|
#include "util/make_unique.h"
|
||||||
@ -159,6 +160,10 @@ RoseDedupeAuxImpl::RoseDedupeAuxImpl(const RoseBuildImpl &build_in)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const auto &report_id : build.smwr.all_reports()) {
|
||||||
|
live_reports.insert(report_id);
|
||||||
|
}
|
||||||
|
|
||||||
// Collect live reports from boundary reports.
|
// Collect live reports from boundary reports.
|
||||||
insert(&live_reports, build.boundary.report_at_0);
|
insert(&live_reports, build.boundary.report_at_0);
|
||||||
insert(&live_reports, build.boundary.report_at_0_eod);
|
insert(&live_reports, build.boundary.report_at_0_eod);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user