Skip to content

Commit

Permalink
eosgrpc: fixed tree metadata following fix in EOS
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Nov 13, 2024
1 parent d7a0558 commit 4879100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4879100

Please sign in to comment.