remove transaction from GetItemList

This commit is contained in:
Luke Pulverenti 2017-01-01 17:35:22 -05:00
parent dbba636290
commit 0f1a542c1f

View File

@ -2547,12 +2547,10 @@ namespace Emby.Server.Implementations.Data
using (WriteLock.Read())
{
using (var connection = CreateConnection(true))
{
return connection.RunInTransaction(db =>
{
var list = new List<BaseItem>();
using (var statement = PrepareStatementSafe(db, commandText))
using (var statement = PrepareStatementSafe(connection, commandText))
{
if (EnableJoinUserData(query))
{
@ -2597,8 +2595,6 @@ namespace Emby.Server.Implementations.Data
LogQueryTime("GetItemList", commandText, now);
return list;
}, ReadTransactionMode);
}
}
}