Skip to content

Commit ca9c545

Browse files
committed
fix(Propagator): Skip groupfolders root entries
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent a6d1fa1 commit ca9c545

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/private/Files/Cache/Propagator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
namespace OC\Files\Cache;
1111

1212
use OC\DB\Exceptions\DbalException;
13+
use OC\Files\Storage\LocalRootStorage;
1314
use OC\Files\Storage\Wrapper\Encryption;
1415
use OCP\DB\QueryBuilder\ILiteral;
1516
use OCP\DB\QueryBuilder\IQueryBuilder;
@@ -51,6 +52,10 @@ public function propagateChange(string $internalPath, int $time, int $sizeDiffer
5152
$storageId = $this->storage->getCache()->getNumericStorageId();
5253

5354
$parents = $this->getParents($internalPath);
55+
if ($this->storage->instanceOfStorage(LocalRootStorage::class) && str_starts_with($internalPath, '__groupfolders')) {
56+
// Remove '' and '__groupfolders'
57+
$parents = array_slice($parents, 2);
58+
}
5459

5560
if ($this->inBatch) {
5661
foreach ($parents as $parent) {

0 commit comments

Comments
 (0)