Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear performance stats when modifying scheduled/pack query #8239

Merged

Conversation

getvictor
Copy link
Contributor

@getvictor getvictor commented Jan 9, 2024

Fixes #8209

When updating scheduled/pack queries dynamically, the performance stats will be cleared for deleted queries and for queries with updated SQL.

This is done by creating a map of pack/query/SQL of old queries and comparing it to the map for new/updated queries.

I'd like to merge this fix before starting work on a related issue #7694

@getvictor getvictor marked this pull request as ready for review January 9, 2024 15:23
@getvictor getvictor requested review from a team as code owners January 9, 2024 15:23
Copy link
Member

@zwass zwass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for including a test.

@directionless directionless merged commit dbced5e into osquery:master Jan 16, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear performance stats when modifying scheduled query
3 participants