From 4c88cef749efa98567dd5c4786b7051e5cb94ca4 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 5 Dec 2018 20:32:02 +0100 Subject: [PATCH] Only execute query in propagateChange once 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 --- lib/private/Files/Cache/Propagator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index 321fd7a66e..bc4fb564b7 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -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) {