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 unnecessary connection creation in metrics #4573

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix build
  • Loading branch information
MaceWindu committed Jul 16, 2024
commit ba8cae5218a6b6518b4a7889cc122d05afe65a14
2 changes: 1 addition & 1 deletion Source/LinqToDB/Data/DataConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public TraceSwitch TraceSwitchConnection
/// </summary>
public DbConnection Connection => EnsureConnection().Connection;

internal DbConnection? CurrentConnection => _connection;
internal DbConnection? CurrentConnection => _connection?.Connection;

internal IAsyncDbConnection EnsureConnection(bool connect = true)
{
Expand Down
Loading