fix: use proper index when deleting mounts

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-03-27 18:44:59 +01:00 committed by backportbot[bot]
parent 2f7dc70a00
commit 2070e76425

View file

@ -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();
}