Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-05 22:32:02 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-05 22:32:02 +0300
commitf7a1ed86562c07789848bfedc3c8a74883f8bd41 (patch)
tree0f28fed61a4f52f73591380842836ea475c8619d /lib/private/Files/Cache/Propagator.php
parent1e0339775057201f54c87fb18e329c1fb94f7a60 (diff)
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/private/Files/Cache/Propagator.php')
-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 ae51b2e52d8..f0cedb39850 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) {