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>
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);
->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')