mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
remove transaction from GetItemList
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user