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

Remove shared package level vars from sqlserver and mysql input plugins #6468

Merged
merged 16 commits into from
Oct 4, 2019

Conversation

GeorgeJahad
Copy link
Contributor

Required for all PRs:

  • [x ] Signed CLA.
  • [ x] Associated README.md updated.
  • [ x] Has appropriate unit tests.

The current implementations of mysql and sqlserver input plugins don't support running multiple times with different configurations because they use shared package level vars

I've just revised the package level var's to either declare them as const's or move them into the instance struct. Also added tests, both integration and unit, that correspond to those changes.

@GeorgeJahad
Copy link
Contributor Author

looks like i need to run go fmt. will do that soon.

@danielnelson danielnelson added this to the 1.12.3 milestone Oct 4, 2019
@danielnelson danielnelson added area/mysql area/sqlserver fix pr to fix corresponding bug labels Oct 4, 2019
@danielnelson danielnelson merged commit c26aeb8 into influxdata:master Oct 4, 2019
@GeorgeJahad
Copy link
Contributor Author

thank you sir!

danielnelson pushed a commit that referenced this pull request Oct 5, 2019
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mysql area/sqlserver fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants