Skip to content

cpu metrics: fix hot reload #237

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

Merged
merged 2 commits into from
May 14, 2021
Merged

cpu metrics: fix hot reload #237

merged 2 commits into from
May 14, 2021

Conversation

vasiliy-t
Copy link
Contributor

@vasiliy-t vasiliy-t commented May 14, 2021

CPU metrics breaks hot reload. This caused by ffi.cdef(struct...) - multiple calls with same definition results in attempt to redefine xxx.... error. I introduced guard to check if those variables already defined.

I didn't forget about

  • Tests
  • Changelog
  • Documentation (README and rst)
  • Rockspec and rpm spec

Close #228

@vasiliy-t vasiliy-t force-pushed the gh-228-cpu-metrics-hotreload branch from 493d930 to b79267b Compare May 14, 2021 07:12
@vasiliy-t vasiliy-t changed the title cpu metrics: add test to check cpu metrics hotreload cpu metrics: fix hot reload May 14, 2021
@vasiliy-t vasiliy-t marked this pull request as ready for review May 14, 2021 07:26
@vasiliy-t vasiliy-t merged commit c00e60d into master May 14, 2021
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.

Not working with package.reload
3 participants