Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/info: Fix repeat path info when inode is 1 #2294

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

201341
Copy link
Contributor

@201341 201341 commented Jun 23, 2022

Signed-off-by: swj 1186093704@qq.com

Signed-off-by: swj <1186093704@qq.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2294 (1db33c0) into main (95350ea) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #2294   +/-   ##
=======================================
  Coverage   61.88%   61.89%           
=======================================
  Files         137      137           
  Lines       25256    25258    +2     
=======================================
+ Hits        15630    15633    +3     
- Misses       7814     7815    +1     
+ Partials     1812     1810    -2     
Impacted Files Coverage Δ
pkg/meta/interface.go 54.16% <0.00%> (-0.77%) ⬇️
pkg/vfs/internal.go 70.45% <0.00%> (-2.28%) ⬇️
pkg/object/restful.go 22.13% <0.00%> (ø)
pkg/meta/sql.go 65.95% <0.00%> (+0.18%) ⬆️
pkg/chunk/utils_unix.go 93.33% <0.00%> (+20.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95350ea...1db33c0. Read the comment docs.

@@ -475,6 +475,9 @@ func GetPaths(m Meta, ctx Context, inode Ino) []string {
c++
paths = append(paths, path.Join(dir, string(e.Name)))
}
if inode == 1 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check inode == 1 at the beginning of the GetPaths should be simpler.

@SandyXSD SandyXSD merged commit a86565e into juicedata:main Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants