-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Avoid locking on restore/delete and limit concurrent requests #36465
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
Conversation
szaimen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
|
Edit: that doesn't work as they don't have a common parent but are instead named "$filename.vXXX.dXXX" |
|
Note that I'm not sure if the scan logic is still needed, I know that in the past we didn't actively maintain the cache outside of |
I had the same assumption in https://github.com/nextcloud/server/pull/28438/files#r691270467 so should we just drop it? |
|
Deleting and restoring versions seems to still work fine with that code part removed. |
4f9d903 to
9ebe372
Compare
|
Do we want to increase the concurrency a bit if we remove the scan? |
…ocking in the backend Signed-off-by: Julius Härtl <[email protected]>
…rsions from trash Signed-off-by: Julius Härtl <[email protected]>
9ebe372 to
7f913de
Compare
|
Increased to 4 which seems a reasonable value for now. |
|
/compile |
Signed-off-by: nextcloud-command <[email protected]>
|
/backport 7f913de to stable25 |
|
/backport 7f913de to stable24 |
Summary
This is a frontend safeguard to avoid running into backend file locks when deleting or restoring multiple files. Even after https://github.com/nextcloud/server/pull/28438/files#diff-5450a6734b54a8b5e2c2f7521098ba6d05993e8bbebffeee140e93ec349e4127R978 this could still happen if the retry timeout was exceeding 15 seconds.
Checklist