Skip to content

Conversation

@MorrisJobke
Copy link
Member

Backport of #12411 and #12413 to fix the unique constraint and deadlock issues in filecache and file_locks.

* 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 <[email protected]>
* 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 <[email protected]>
@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Nov 13, 2018
@MorrisJobke MorrisJobke added this to the Nextcloud 14.0.4 milestone Nov 13, 2018
@MorrisJobke MorrisJobke changed the title Backport/12411 12413/unique constraint fix [stable14] Unique contraint and deadlock fixes for filecache and file_locks Nov 13, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 13, 2018
@MorrisJobke MorrisJobke merged commit 40f5f12 into stable14 Nov 13, 2018
@MorrisJobke MorrisJobke deleted the backport/12411-12413/unique-constraint-fix branch November 13, 2018 14:04
@MorrisJobke MorrisJobke mentioned this pull request Nov 22, 2018
@kesselb kesselb mentioned this pull request Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants