]> source.dussan.org Git - nextcloud-server.git/commit
Fix UniqueConstraintViolationException while insert into oc_file_locks 12433/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 12 Nov 2018 14:13:10 +0000 (15:13 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 13 Nov 2018 12:59:24 +0000 (13:59 +0100)
commitec5c11d28458fd2cddbebc7bce24313ea51ce2c0
treeba2f7be55cc131128da9397d52528f41d0c111fb
parent442680024f3dabed5d8842826e862acf94d854ff
Fix UniqueConstraintViolationException while insert into oc_file_locks

* fixes #9305 by not being prone to the race condition in insertIfNotExists
* fixes #6899 by not using a query that can result in a deadlock
* replaces the insertIfNotExists call with an insert which is wrapped into a try-catch block
* followup to #12371

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
lib/private/Lock/DBLockingProvider.php