Skip to content

Commit

Permalink
Merge pull request #4931 from glpatcern/fix-eosgrpc-stat
Browse files Browse the repository at this point in the history
eosgrpc: fixed tree metadata following fix in EOS
  • Loading branch information
diocas authored Nov 13, 2024
2 parents 8a78778 + fedf9ad commit b190985
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-eosgrpc-stat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: fixed tree metadata following fix in EOS

The treecount is now populated from the EOS response.

https://github.com/cs3org/reva/pull/4931
3 changes: 1 addition & 2 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1686,8 +1686,7 @@ func (c *Client) grpcMDResponseToFileInfo(ctx context.Context, st *erpc.MDRespon

fi.TreeSize = uint64(st.Cmd.TreeSize)
fi.Size = fi.TreeSize
// TODO(lopresti) this info is missing in the EOS Protobuf, cf. EOS-5974
// fi.TreeCount = uint64(st.Cmd.TreeCount)
fi.TreeCount = st.Cmd.Files + st.Cmd.Containers

log.Debug().Str("stat info - path", fi.File).Uint64("inode", fi.Inode).Uint64("uid", fi.UID).Uint64("gid", fi.GID).Str("etag", fi.ETag).Msg("grpc response")
} else {
Expand Down

0 comments on commit b190985

Please sign in to comment.