mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: use proper index when deleting mounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2f7dc70a00
commit
2070e76425
1 changed files with 1 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ class UserMountCache implements IUserMountCache {
|
|||
public function removeMount(string $mountPoint): void {
|
||||
$query = $this->connection->getQueryBuilder();
|
||||
$query->delete('mounts')
|
||||
->where($query->expr()->eq('mount_point', $query->createNamedParameter($mountPoint)));
|
||||
->where($query->expr()->eq('mount_point_hash', $query->createNamedParameter(hash('xxh128', $mountPoint))));
|
||||
$query->executeStatement();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue