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>
This commit is contained in:
parent
13b2617761
commit
ab31b26b0c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue