diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-17 21:37:16 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-04-18 21:23:59 +0200 |
commit | c16d116fa6f27a199a7b483f91047c78dd6eddce (patch) | |
tree | 217976f4bb70778a0a8e168b74b8e3cbbe192c8c /apps/dav/lib | |
parent | f5d0f746f9aff3df3bfd206a02270a7969701c4a (diff) | |
download | nextcloud-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/lib')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php b/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php index c77a4d6be48..f3f685a8b9e 100644 --- a/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php +++ b/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php @@ -129,13 +129,6 @@ class CustomPropertiesBackend implements BackendInterface { return; } - if ($node instanceof Directory - && $propFind->getDepth() !== 0 - ) { - // note: pre-fetching only supported for depth <= 1 - $this->loadChildrenProperties($node, $requestedProps); - } - $props = $this->getProperties($node, $requestedProps); foreach ($props as $propName => $propValue) { $propFind->set($propName, $propValue); |