-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(files): Also restore shares after ownership transfer for object storage #44904
Conversation
Background information: Currently our file system does not support moving files between storages, so we need to hack this here. |
3a26dda
to
e2a3144
Compare
/backport to stable29 |
/backport to stable28 |
/backport to stable27 |
…torage When a file is moved between different storages then the file id is not (always) preserved. This means the file id has to be adjusted for all shares. So in case the file id does not exist anymore we try to find the new file id based on the target path of the transfer and the path suffix of the share. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
e2a3144
to
38f4451
Compare
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.
Band-aid, but should works 👍
Summary
When a file is moved between different storages then the file id is not (always) preserved. This means the file id has to be adjusted for all shares.
So in case the file id does not exist anymore we try to find the new file id based on the target path of the transfer and the path suffix of the share.
Checklist