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

fix missing metadata in stat cmd #2348

Merged
merged 1 commit into from
Jan 10, 2018
Merged

fix missing metadata in stat cmd #2348

merged 1 commit into from
Jan 10, 2018

Conversation

poornas
Copy link
Contributor

@poornas poornas commented Jan 6, 2018

mc stat without --r is missing metadata for stat on objectname.

@codecov-io
Copy link

codecov-io commented Jan 6, 2018

Codecov Report

Merging #2348 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2348      +/-   ##
==========================================
+ Coverage   10.76%   10.76%   +<.01%     
==========================================
  Files         103      103              
  Lines        7723     7721       -2     
==========================================
  Hits          831      831              
+ Misses       6758     6756       -2     
  Partials      134      134
Impacted Files Coverage Δ
cmd/stat.go 16.27% <ø> (+0.36%) ⬆️

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 13259ee...7c39830. Read the comment docs.

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

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

LGTM tested.

@@ -144,9 +144,6 @@ func doStat(clnt Client, isRecursive bool, targetAlias, targetURL string) error
continue
}
url := targetAlias + getKey(content)
if !isAliasURLDir(targetURL) {
url = content.URL.Path
}
Copy link
Contributor

Choose a reason for hiding this comment

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

doStat(clnt Client, isRecursive bool, targetAlias, targetURL string) looks like targetURL is not used ... you can remove this as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

mc stat without --r is missing metadata for stat on objectname
@kannappanr kannappanr merged commit 722ee94 into minio:master Jan 10, 2018
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.

5 participants