diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-19 19:01:23 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-19 19:06:06 +0200 |
commit | 47d281865ebd2527446ccff9435be2d09e28f59f (patch) | |
tree | 1bf3323db43dadf7bd501d28353fc9f88edacd0b /lib | |
parent | 00a27afa264c98cd1ca65a682f459f60ef91b497 (diff) | |
download | nextcloud-server-47d281865ebd2527446ccff9435be2d09e28f59f.tar.gz nextcloud-server-47d281865ebd2527446ccff9435be2d09e28f59f.zip |
perf: reuse cache info we already have when moving to object storeobject-store-move-db
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index 26823f65c2f..2f1f91f7f22 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -604,8 +604,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil } if ($sourceCacheEntry->getMimeType() === FileInfo::MIMETYPE_FOLDER) { $this->mkdir($targetInternalPath); - foreach ($sourceCache->getFolderContents($sourceInternalPath) as $child) { - $this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName()); + foreach ($sourceCache->getFolderContentsById($sourceCacheEntry->getId()) as $child) { + $this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName(), $child); } $sourceStorage->rmdir($sourceInternalPath); } else { |