-
Notifications
You must be signed in to change notification settings - Fork 113
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
More Async Upload Fixes #3571
More Async Upload Fixes #3571
Conversation
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
7a2ea06
to
8ea0228
Compare
@@ -263,15 +263,13 @@ func (upload *Upload) FinishUpload(_ context.Context) error { | |||
} | |||
} | |||
|
|||
if upload.async { | |||
// handle postprocessing asynchronously but inform there is something in progress | |||
return upload.tp.Propagate(upload.Ctx, n, upload.sizeDiff) |
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.
not needed anymore? where do we propagate now?
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.
We still propagate. I just switched the code parts so we need to call to upload.tp.Propagate
only once
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.
CI in ocis confirms the fixes.
Fixes owncloud/ocis#5278 and owncloud/ocis#5279