aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-11 16:12:01 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-11 16:12:01 -0400
commitda6e94396fb417077010d3a2e5f3282bf06234c3 (patch)
tree2aa560be2283ab4a6be3198013df460982dee44f /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent96b1ddfddf43cdc4d18d1de0f49027ae6f0ea1ac (diff)
update connection pooling
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 503fb1aa7..2483ec93e 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -1309,7 +1309,15 @@ namespace MediaBrowser.Server.Implementations.Library
AddUserToQuery(query, query.User);
}
- return ItemRepository.GetItems(query);
+ if (query.EnableTotalRecordCount)
+ {
+ return ItemRepository.GetItems(query);
+ }
+
+ return new QueryResult<BaseItem>
+ {
+ Items = ItemRepository.GetItemList(query).ToArray()
+ };
}
public List<Guid> GetItemIds(InternalItemsQuery query)