mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Limit getIncomplete query to one row
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
27fdc6575d
commit
e0e76bb784
1 changed files with 2 additions and 1 deletions
|
|
@ -997,7 +997,8 @@ class Cache implements ICache {
|
|||
->from('filecache')
|
||||
->whereStorageId()
|
||||
->andWhere($query->expr()->lt('size', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT)))
|
||||
->orderBy('fileid', 'DESC');
|
||||
->orderBy('fileid', 'DESC')
|
||||
->setMaxResults(1);
|
||||
|
||||
$result = $query->execute();
|
||||
$path = $result->fetchColumn();
|
||||
|
|
|
|||
Loading…
Reference in a new issue