mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Fixed sab title issue
Added profiling to OpenSharedconnection
This commit is contained in:
parent
f6ccb5e17c
commit
5fb2c61c77
4 changed files with 27 additions and 18 deletions
|
@ -355,16 +355,19 @@ namespace PetaPoco
|
|||
// Open a connection (can be nested)
|
||||
public void OpenSharedConnection()
|
||||
{
|
||||
if (_sharedConnectionDepth == 0)
|
||||
using (MvcMiniProfiler.MiniProfiler.StepStatic("OpenSharedConnection"))
|
||||
{
|
||||
_sharedConnection = _factory.CreateConnection();
|
||||
_sharedConnection.ConnectionString = _connectionString;
|
||||
_sharedConnection.Open();
|
||||
if (_sharedConnectionDepth == 0)
|
||||
{
|
||||
_sharedConnection = _factory.CreateConnection();
|
||||
_sharedConnection.ConnectionString = _connectionString;
|
||||
_sharedConnection.Open();
|
||||
|
||||
if (KeepConnectionAlive)
|
||||
_sharedConnectionDepth++; // Make sure you call Dispose
|
||||
if (KeepConnectionAlive)
|
||||
_sharedConnectionDepth++; // Make sure you call Dispose
|
||||
}
|
||||
_sharedConnectionDepth++;
|
||||
}
|
||||
_sharedConnectionDepth++;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue