Skip to content

Commit ce8e21d

Browse files
committed
fix: execute throws docrine exceptions not our wrapped ones
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 74b4fd2 commit ce8e21d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/Cache/Updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
namespace OC\Files\Cache;
2929

30-
use OC\DB\Exceptions\DbalException;
30+
use Doctrine\DBAL\Exception\DeadlockException;
3131
use OC\Files\FileInfo;
3232
use OCP\Files\Cache\ICacheEntry;
3333
use OCP\Files\Cache\IUpdater;
@@ -260,7 +260,7 @@ private function correctParentStorageMtime($internalPath) {
260260
if ($mtime !== false) {
261261
try {
262262
$this->cache->update($parentId, ['storage_mtime' => $mtime]);
263-
} catch (DbalException $e) {
263+
} catch (DeadlockException $e) {
264264
// ignore the failure.
265265
// with failures concurrent updates, someone else would have already done it.
266266
// in the worst case the `storage_mtime` isn't updated, which should at most only trigger an extra rescan

0 commit comments

Comments
 (0)