mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
parent
8e10156a1f
commit
523ad777a8
@ -127,16 +127,17 @@ inline void launchQuery(const std::string& name, const ScheduledQuery& query) {
|
||||
diff_results.added = std::move(sql.rows());
|
||||
}
|
||||
|
||||
if (query.options.count("removed") && !query.options.at("removed")) {
|
||||
diff_results.removed.clear();
|
||||
}
|
||||
|
||||
if (diff_results.added.empty() && diff_results.removed.empty()) {
|
||||
// No diff results or events to emit.
|
||||
return;
|
||||
}
|
||||
|
||||
VLOG(1) << "Found results for query: " << name;
|
||||
item.results = diff_results;
|
||||
if (query.options.count("removed") && !query.options.at("removed")) {
|
||||
item.results.removed.clear();
|
||||
}
|
||||
item.results = std::move(diff_results);
|
||||
|
||||
status = logQueryLogItem(item);
|
||||
if (!status.ok()) {
|
||||
|
Loading…
Reference in New Issue
Block a user