Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable14] Unique contraint and deadlock fixes for filecache and file_locks #12433

Merged
merged 2 commits into from
Nov 13, 2018

Commits on Nov 13, 2018

  1. 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>
    MorrisJobke committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    4426800 View commit details
    Browse the repository at this point in the history
  2. 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>
    MorrisJobke committed Nov 13, 2018
    Configuration menu
    Copy the full SHA
    ec5c11d View commit details
    Browse the repository at this point in the history