mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-17 21:25:39 -04: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