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

[WIP] Lock file by parentid childname #4450

Draft
wants to merge 1 commit into
base: edge
Choose a base branch
from

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Jan 8, 2024

In order to be able to lock a new node during upload of a new file we need to be able to lock a node that does not exist, which would work by a parentid&childname based lock. buuut that has problems.

Another solution would be to create the node with the InitiateUpload call. Similar to an fopen it should always create a 0 byte file. This will generate an id that can subsequently be used. IMO we need a 0 byte file so clients can detect that a new file was created. They can then check the upload progress and even get access to the postprocessing status.

But... this needs to be compatible with the sync algorithm used by the clients.

Copy link

update-docs bot commented Jan 8, 2024

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic force-pushed the lock-file-by-parentid-childname branch from 21f9bc0 to b609db1 Compare January 8, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant