diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-05 20:32:02 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-05 20:32:02 +0100 |
commit | f7a1ed86562c07789848bfedc3c8a74883f8bd41 (patch) | |
tree | 0f28fed61a4f52f73591380842836ea475c8619d /lib | |
parent | 1e0339775057201f54c87fb18e329c1fb94f7a60 (diff) | |
download | nextcloud-server-f7a1ed86562c07789848bfedc3c8a74883f8bd41.tar.gz nextcloud-server-f7a1ed86562c07789848bfedc3c8a74883f8bd41.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.php | 4 |
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) { |