|
@@ -112,11 +112,11 @@ discard block |
|
|
block discarded – undo |
|
112
|
112
|
|
|
113
|
113
|
$qb = $this->getQuery(); |
|
114
|
114
|
|
|
115
|
|
- $path = $root['path'] === '' ? '' : $root['path'] . '/'; |
|
|
115
|
+ $path = $root['path'] === '' ? '' : $root['path'].'/'; |
|
116
|
116
|
|
|
117
|
117
|
$qb->selectDistinct('*') |
|
118
|
118
|
->from('filecache', 'f') |
|
119
|
|
- ->where($qb->expr()->like('f.path', $qb->createNamedParameter($this->connection->escapeLikeParameter($path) . '%'))) |
|
|
119
|
+ ->where($qb->expr()->like('f.path', $qb->createNamedParameter($this->connection->escapeLikeParameter($path).'%'))) |
|
120
|
120
|
->andWhere($qb->expr()->eq('f.storage', $qb->createNamedParameter($storageId))) |
|
121
|
121
|
->andWhere($qb->expr()->gt('f.fileid', $qb->createNamedParameter($fileIdCursor, IQueryBuilder::PARAM_INT))); |
|
122
|
122
|
|
|
@@ -183,8 +183,8 @@ discard block |
|
|
block discarded – undo |
|
183
|
183
|
/** @var array{storage_id:int, root_id:int,mount_provider_class:string} $row */ |
|
184
|
184
|
$row = $result->fetch() |
|
185
|
185
|
) { |
|
186
|
|
- $storageId = (int)$row['storage_id']; |
|
187
|
|
- $rootId = (int)$row['root_id']; |
|
|
186
|
+ $storageId = (int) $row['storage_id']; |
|
|
187
|
+ $rootId = (int) $row['root_id']; |
|
188
|
188
|
$overrideRoot = $rootId; |
|
189
|
189
|
// LocalHomeMountProvider is the default provider for user home directories |
|
190
|
190
|
// ObjectHomeMountProvider is the home directory provider for when S3 primary storage is used |
|
@@ -203,10 +203,10 @@ discard block |
|
|
block discarded – undo |
|
203
|
203
|
/** @var array|false $root */ |
|
204
|
204
|
$root = $qb->executeQuery()->fetch(); |
|
205
|
205
|
if ($root !== false) { |
|
206
|
|
- $overrideRoot = (int)$root['fileid']; |
|
|
206
|
+ $overrideRoot = (int) $root['fileid']; |
|
207
|
207
|
} |
|
208
|
208
|
} catch (Exception $e) { |
|
209
|
|
- $this->logger->error('Could not fetch home storage files root for storage ' . $storageId, ['exception' => $e]); |
|
|
209
|
+ $this->logger->error('Could not fetch home storage files root for storage '.$storageId, ['exception' => $e]); |
|
210
|
210
|
continue; |
|
211
|
211
|
} |
|
212
|
212
|
} |