-
Notifications
You must be signed in to change notification settings - Fork 1.2k
virt plugin: handle disconnect on inst#0 #2100
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
Conversation
This breaks CI. |
if (conn != NULL) | ||
virConnectClose(conn); | ||
conn = NULL; | ||
if (inst->id == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the braces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry. Funny that clang-format doesn't complain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's what I thought. Especially since it got it right a few lines higher.
7461bde
to
b102d28
Compare
|
b102d28
to
0561a6f
Compare
I think the only way to unlock this is to rebase: the "resolve conflicts" button on the github UI leads me to 404 :) |
Only one virt reader instance should take care of connection handling (connection/disconnection) to avoid races and plugin data corruption, potentially crashing collectd. This bug cannot be triggered with instances=1 (default settings). Signed-off-by: Francesco Romani <fromani@redhat.com>
Avoiding duplication of the code and let's use the new lv_disconnect() helper in the lv_shutdown() callback. Signed-off-by: Francesco Romani <fromani@redhat.com>
0561a6f
to
c502181
Compare
The button worked for me, looks like GitHub is A/B testing it ;) Thanks! |
Only one virt reader instance should take care of connection
handling (connection/disconnection) to avoid races and plugin
data corruption, potentially crashing collectd.
This bug cannot be triggered with instances=1 (default settings).
Signed-off-by: Francesco Romani fromani@redhat.com