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())
|
using (var db = Config.DbConnection())
|
||||||
{
|
{
|
||||||
db.Open();
|
db.Open();
|
||||||
using (var tran = db.BeginTransaction())
|
//using (var tran = db.BeginTransaction())
|
||||||
{
|
//{
|
||||||
Log.Trace("Starting Transaction");
|
Log.Trace("Starting Transaction");
|
||||||
var result = enumerable.Sum(e => db.Insert(e));
|
var result = enumerable.Sum(e => db.Insert(e));
|
||||||
var done = result == enumerable.Length;
|
var done = result == enumerable.Length;
|
||||||
|
@ -301,15 +301,15 @@ namespace PlexRequests.Store.Repository
|
||||||
Log.Trace($"totalitems result: {enumerable.Length}");
|
Log.Trace($"totalitems result: {enumerable.Length}");
|
||||||
if (done)
|
if (done)
|
||||||
{
|
{
|
||||||
Log.Trace("Committed the tran");
|
Log.Trace("Commiting");
|
||||||
tran.Commit();
|
//tran.Commit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Log.Trace("Rolling back the tran");
|
Log.Trace("Rolling back the tran");
|
||||||
|
|
||||||
tran.Rollback();
|
//tran.Rollback();
|
||||||
return false;
|
return false;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue