Skip to content
Snippets Groups Projects
Commit 336a1274 authored by Joas Schilling's avatar Joas Schilling
Browse files

Catch "missing table" exception when cleaning up locks

parent 33cf1c3c
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,13 @@ class DBLockingProvider extends AbstractLockingProvider {
}
public function __destruct() {
try {
$this->cleanEmptyLocks();
} catch (\PDOException $e) {
// If the table is missing, the clean up was successful
if ($this->connection->tableExists('file_locks')) {
throw $e;
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment