mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
Commented out the transaction for now to debug it.
This commit is contained in:
parent
e4f9b4c71e
commit
0b21c69a46
1 changed files with 6 additions and 6 deletions
|
@ -290,8 +290,8 @@ namespace PlexRequests.Store.Repository
|
|||
using (var db = Config.DbConnection())
|
||||
{
|
||||
db.Open();
|
||||
using (var tran = db.BeginTransaction())
|
||||
{
|
||||
//using (var tran = db.BeginTransaction())
|
||||
//{
|
||||
Log.Trace("Starting Transaction");
|
||||
var result = enumerable.Sum(e => db.Insert(e));
|
||||
var done = result == enumerable.Length;
|
||||
|
@ -301,15 +301,15 @@ namespace PlexRequests.Store.Repository
|
|||
Log.Trace($"totalitems result: {enumerable.Length}");
|
||||
if (done)
|
||||
{
|
||||
Log.Trace("Committed the tran");
|
||||
tran.Commit();
|
||||
Log.Trace("Commiting");
|
||||
//tran.Commit();
|
||||
return true;
|
||||
}
|
||||
Log.Trace("Rolling back the tran");
|
||||
|
||||
tran.Rollback();
|
||||
//tran.Rollback();
|
||||
return false;
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue