Skip to content

Commit

Permalink
Merge pull request #4476 from butonic/no-need-to-unmark-postprocessin…
Browse files Browse the repository at this point in the history
…g-when-it-was-not-started

no need to unmark postprocessing when it was not started
  • Loading branch information
butonic authored Jan 24, 2024
2 parents f9ec0fa + b5b558d commit a3e8b04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: no need to unmark postprocessing when it was not started

https://github.com/cs3org/reva/pull/4476
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/upload/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (s *OcisSession) MTime() time.Time {
return t
}

// IsProcessing returns true if all bytes have been received. The node then has entered postprocessing state.
// IsProcessing returns true if all bytes have been received. The session then has entered postprocessing state.
func (s *OcisSession) IsProcessing() bool {
return s.info.Size == s.info.Offset
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (session *OcisSession) FinishUpload(ctx context.Context) error {

n, err := session.store.CreateNodeForUpload(session, attrs)
if err != nil {
session.store.Cleanup(ctx, session, true, false, true)
session.store.Cleanup(ctx, session, true, false, false)
return err
}

Expand Down

0 comments on commit a3e8b04

Please sign in to comment.