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

[sqlite] Use an atomic implementation on sqlite for insertIfNotExist() + use it in the file cache ... #14734

Merged
merged 3 commits into from Mar 6, 2015

Conversation

DeepDiver1975
Copy link
Member

@dragotin can you put this on your failing instance? THX

@PVince81 @icewind1991 please review

insertIfNotExist() is now used in the file cache to avoid integrity constraint violations. Let's see ...

@DeepDiver1975 DeepDiver1975 changed the title Unit test insert if not exist [sqlite] Use an atomic implementation on sqlite for insertIfNotExist() Mar 6, 2015
@MorrisJobke MorrisJobke modified the milestones: 8.2-next, 8.1-current Mar 6, 2015
@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@ghost
Copy link

ghost commented Mar 6, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/10248/
Test PASSed.

@DeepDiver1975 DeepDiver1975 changed the title [sqlite] Use an atomic implementation on sqlite for insertIfNotExist() [sqlite] Use an atomic implementation on sqlite for insertIfNotExist() + use it in the file cache ... Mar 6, 2015
@ghost
Copy link

ghost commented Mar 6, 2015

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/10249/
Test PASSed.

@dragotin
Copy link
Contributor

dragotin commented Mar 6, 2015

I can confirm that this patch fixes all the problems I saw. No internal server errors any more 🍻

@dragotin
Copy link
Contributor

dragotin commented Mar 6, 2015

👍 of course.

@karlitschek
Copy link
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Mar 6, 2015
[sqlite] Use an atomic implementation on sqlite for insertIfNotExist() + use it in the file cache ...
@DeepDiver1975 DeepDiver1975 merged commit a77a6f3 into master Mar 6, 2015
@DeepDiver1975 DeepDiver1975 deleted the unit-test-insertIfNotExist branch March 6, 2015 17:20
@sleepysmurf
Copy link

how to apply this patch?

@DeepDiver1975
Copy link
Member Author

how to apply this patch?

This patch is also part of 8.0.2 - which will be released tomorrow

LukasReschke added a commit that referenced this pull request Mar 18, 2015
Without this files with a ` (backtick) in the beginning of the filenames where simply not correctly referenced as the ` got removed. This can lead to all possible havoc situations.

Should get backported to stable8 and in future we might consider if it is really worth to backport such changes when it is just for SQLite 🙈

Regression of #14734
@SpeicherBox
Copy link

Is this fix valid for OC7 as well?

@DeepDiver1975
Copy link
Member Author

Is this fix valid for OC7 as well?

no - 8.0.3 will contain this fix. there are no plans to backport this to oc7

@SpeicherBox
Copy link

Thank you for your fast reply. Or can i just replace the 3 files in my setup? Will this work or will this break my installation?

At the moment we have allot of Duplicate Entry in oc_filecache errors in our System but I can't update to oc8.

@DeepDiver1975
Copy link
Member Author

Thank you for your fast reply. Or can i just replace the 3 files in my setup? Will this work or will this break my installation?

No - this will no help at all - this change was only the foundation to fix the issue. The full fix is spread amongst multiple patches.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants