Skip to content

Commit

Permalink
upload session specific processing flag
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jan 24, 2024
1 parent 6d841aa commit 2affdec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: upload session specific processing flag

To make every upload session have a dedicated processing status, upload sessions are now treated as in processing when all bytes have been received instead of checking the node metadata.

https://github.com/cs3org/reva/pull/4475
8 changes: 2 additions & 6 deletions pkg/storage/utils/decomposedfs/upload/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,9 @@ func (s *OcisSession) MTime() time.Time {
return t
}

// IsProcessing returns true if the node has entered postprocessing state
// IsProcessing returns true if all bytes have been received. The node then has entered postprocessing state.
func (s *OcisSession) IsProcessing() bool {
n, err := s.Node(context.Background())
if err != nil {
return false
}
return n.IsProcessing(context.Background())
return s.info.Size == s.info.Offset
}

// binPath returns the path to the file storing the binary data.
Expand Down

0 comments on commit 2affdec

Please sign in to comment.