Merge pull request #24791 from nextcloud/backport/24715/stable20
[stable20] Limit getIncomplete query to one row
This commit is contained in:
commit
2a91d7837b
|
@ -972,7 +972,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 New Issue