]> source.dussan.org Git - nextcloud-server.git/commit
Fix UniqueConstraintViolationException while insert into oc_filecache
authorMorris Jobke <hey@morrisjobke.de>
Mon, 12 Nov 2018 12:43:46 +0000 (13:43 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 13 Nov 2018 12:59:15 +0000 (13:59 +0100)
commit442680024f3dabed5d8842826e862acf94d854ff
tree875a5f608f8c005b4a07e1eb2ce41e64cb9503cf
parent655b7f047cf88e731360932b13d7a08ff5933d84
Fix UniqueConstraintViolationException while insert into oc_filecache

* fixes #6160 by not being prone to the race condition in insertIfNotExists
* fixes #12228 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

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