mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	remove transaction from GetItemList
This commit is contained in:
		
							parent
							
								
									dbba636290
								
							
						
					
					
						commit
						0f1a542c1f
					
				@ -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);
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user