aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-05 20:32:02 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2018-12-05 20:45:15 +0000
commitab31b26b0cb36205a5d729322cbd8a39e00fd6e3 (patch)
tree8e57f945337f7c161f6b73b0535119b3da14c45a /lib
parent13b2617761ee40fae3523f2aa8826d39d395744b (diff)
downloadnextcloud-server-ab31b26b0cb36205a5d729322cbd8a39e00fd6e3.tar.gz
nextcloud-server-ab31b26b0cb36205a5d729322cbd8a39e00fd6e3.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Cache/Propagator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php
index 321fd7a66e8..bc4fb564b77 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) {