Merge pull request #15204 from nextcloud/backport/15146/stable16
[stable16] Prefetching blows up if there are a lot of files.
This commit is contained in:
commit
621a872306
|
@ -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);
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue