From fedf9ad151c86152b875836e9b4d744b388a2d55 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Wed, 13 Nov 2024 10:45:20 +0100 Subject: [PATCH] eosgrpc: fixed tree metadata following fix in EOS --- changelog/unreleased/fix-eosgrpc-stat.md | 5 +++++ pkg/eosclient/eosgrpc/eosgrpc.go | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/fix-eosgrpc-stat.md diff --git a/changelog/unreleased/fix-eosgrpc-stat.md b/changelog/unreleased/fix-eosgrpc-stat.md new file mode 100644 index 0000000000..3970628591 --- /dev/null +++ b/changelog/unreleased/fix-eosgrpc-stat.md @@ -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 diff --git a/pkg/eosclient/eosgrpc/eosgrpc.go b/pkg/eosclient/eosgrpc/eosgrpc.go index 22f46e590c..c34519acdc 100644 --- a/pkg/eosclient/eosgrpc/eosgrpc.go +++ b/pkg/eosclient/eosgrpc/eosgrpc.go @@ -1677,8 +1677,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 {