aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-04-17 21:37:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-04-18 21:23:59 +0200
commitc16d116fa6f27a199a7b483f91047c78dd6eddce (patch)
tree217976f4bb70778a0a8e168b74b8e3cbbe192c8c /apps/dav/tests
parentf5d0f746f9aff3df3bfd206a02270a7969701c4a (diff)
downloadnextcloud-server-c16d116fa6f27a199a7b483f91047c78dd6eddce.tar.gz
nextcloud-server-c16d116fa6f27a199a7b483f91047c78dd6eddce.zip
Prefetching blows up if there are a lot of files.
I saw instances where people had a lot of files (each with custom properties) and all this prefetching blew up and started to consume an insane amount of RAM resulting in the process getting killed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
index 91973eeff5d..3b7bd859b9f 100644
--- a/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
@@ -226,10 +226,6 @@ class CustomPropertiesBackendTest extends \Test\TestCase {
->method('getPath')
->will($this->returnValue('/dummypath/test.txt'));
- $rootNode->expects($this->once())
- ->method('getChildren')
- ->will($this->returnValue(array($nodeSub)));
-
$this->tree->expects($this->at(0))
->method('getNodeForPath')
->with('/dummypath')