Merge pull request #24715 from nextcloud/bug/noid/limit-get-incomplete-to-1
Limit getIncomplete query to one row
This commit is contained in:
commit
4973f9b952
|
@ -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 New Issue