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

Fix tracing with multiple environments #14

Merged
merged 1 commit into from
May 7, 2018

Conversation

v-chojas
Copy link
Contributor

@v-chojas v-chojas commented May 7, 2018

The bug:

  • Enable tracing
  • Allocate one env handle, connect, do other ODBC ops
  • Allocate another env handle, free it
  • Tracing stops working with first env handle and its child handles

This change fixes it by adding a reference count to the logging, so it is closed only when no more env handles exist.

@lurcher lurcher merged commit 8656d0f into lurcher:master May 7, 2018
@v-chojas v-chojas deleted the fix-trace-refcount branch May 7, 2018 19:31
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.

2 participants