-
Notifications
You must be signed in to change notification settings - Fork 564
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: mirror --summary should work like -q #4923
fix: mirror --summary should work like -q #4923
Conversation
22e3ed4
to
21322a6
Compare
fix: --summary should work like -q
21322a6
to
641a689
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't --summary
operate independent of -q
, so it displays progress AND prints the summary when done?
Yes. See the test case. jiuker@MacBook-Pro mc % ./mc mirror --overwrite --retry --summary --skip-errors /Users/jiuker/workspace/go/src/pkg/mc /Users/jiuker/workspace/go/src/minio/stage/issueBucket
.../go/src/pkg/mc/testdata/localhost.crt: 68.04 MiB / 68.04 MiB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 64.99 MiB/s 1s
jiuker@MacBook-Pro mc % ./mc mirror --overwrite --retry --summary --skip-errors /Users/jiuker/workspace/go/src/pkg/mc /Users/jiuker/workspace/go/src/minio/stage/issueBucket -q
Total: 0 B, Transferred: 0 B, Speed: 0 B/s jiuker@MacBook-Pro mc % ./mc mirror --overwrite --retry --summary --skip-errors /Users/jiuker/workspace/go/src/pkg/mc /Users/jiuker/workspace/go/src/minio/stage/issueBucket -q
Total: 68.13 MiB, Transferred: 68.13 MiB, Speed: 59.86 MiB/s The second one show zero for nothing to copy with the same commad. It will show the correct size if that have objects to copy really. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
fix: mirror --summary should work like -q
Or user must use
--summary
with-q
to avoid incorrectProgressStatus
.Motivation and Context
How to test this PR?
Types of changes
Checklist:
commit-id
orPR #
here)