]> source.dussan.org Git - nextcloud-server.git/commit
add locking to resolve concurent move to trashbin conflicts 20882/head
authorRobin Appelman <robin@icewind.nl>
Wed, 6 May 2020 13:32:44 +0000 (15:32 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 8 May 2020 11:29:56 +0000 (11:29 +0000)
commit069870a82fd454b7811c7739755fd249e13d6f02
tree45384294bb815c8b96770026849aaec035d6251a
parent23fb63daebe9985c8ff17e54af90dc51d1cd4e5d
add locking to resolve concurent move to trashbin conflicts

uses a lock to prevent two requests from moving a file to the trashbin concurrently
(causing sql duplicate key errors)

Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_trashbin/lib/Trashbin.php
apps/files_trashbin/tests/StorageTest.php