Repository navigation
feat(upload): route PUT and TUS through the upload coordinator - #935
Merged
Merged
Conversation
dragonchaser
approved these changes
Nov 3, 2026
TouchFile only returns an error here, so the coordinator reads the touched node back to learn its id and space owner or manager.
The coordinator persists the session after PrepareUpload, so it records the processing status there. Listing uploads then reports the session as processing while postprocessing runs. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the upload coordinator stack, see #934.
We now have the coordinator itself: it initiates an upload (resolves the target, checks quota and locks), receives the bytes for PUT and via the TUS adapter, verifies checksums and finishes the upload either synchronously or by handing it to postprocessing. A session is marked processing once
PrepareUploadran. Nothing is wired to it yet, that happens in #947.Review focus:
coordinator.go:InitiateUpload→Upload→finishUpload, and wherePrepareUpload/CommitUploadare calledtus_adapter.go: the mapping between tusd and the coordinatorReview commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.
stacked on #934
Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.