]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only execute query in propagateChange once 12862/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 5 Dec 2018 19:32:02 +0000 (20:32 +0100)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 5 Dec 2018 20:45:15 +0000 (20:45 +0000)
The second execute statement should be inside the if block. Else it gets
executed twice which makes no sense.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Files/Cache/Propagator.php

index 321fd7a66e8880cecf94ac7b8fc073f21287b084..bc4fb564b77a64cd5e7c7e0d15f72f6a3d119e0b 100644 (file)
@@ -97,9 +97,9 @@ class Propagator implements IPropagator {
                                ->where($builder->expr()->eq('storage', $builder->createNamedParameter($storageId, IQueryBuilder::PARAM_INT)))
                                ->andWhere($builder->expr()->in('path_hash', $hashParams))
                                ->andWhere($builder->expr()->gt('size', $builder->expr()->literal(-1, IQueryBuilder::PARAM_INT)));
-               }
 
-               $builder->execute();
+                       $builder->execute();
+               }
        }
 
        protected function getParents($path) {