mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Updated transaction locks to be defered.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Marr.Data
|
||||
@@ -54,12 +55,12 @@ namespace Marr.Data
|
||||
}
|
||||
}
|
||||
|
||||
public void BeginTransaction()
|
||||
public void BeginTransaction(IsolationLevel isolationLevel)
|
||||
{
|
||||
// Only allow one transaction to begin
|
||||
if (_transactionCount < 1)
|
||||
{
|
||||
DB.BeginTransaction();
|
||||
DB.BeginTransaction(isolationLevel);
|
||||
}
|
||||
|
||||
_transactionCount++;
|
||||
|
Reference in New Issue
Block a user