-
Notifications
You must be signed in to change notification settings - Fork 525
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
feat:add bs query snapshot #2943
base: master
Are you sure you want to change the base?
Conversation
cicheck |
2 similar comments
cicheck |
cicheck |
row[cobrautil.ROW_STATUS] = fmt.Sprintf("%d", item.Status) | ||
row[cobrautil.ROW_SNAPSHOT_SEQNUM] = fmt.Sprintf("%d", item.SeqNum) | ||
row[cobrautil.ROW_FILE_LENGTH] = fmt.Sprintf("%d", item.FileLength) | ||
row[cobrautil.ROW_PROGRESS] = fmt.Sprintf("%v", item.Progress) | ||
row[cobrautil.ROW_CREATE_TIME] = time.Unix(int64(item.Time/1000000), 0).Format("2006-01-02 15:04:05") |
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.
convert int to string has better method?
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!
cicheck |
cicheck |
13 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
1 similar comment
cicheck |
cicheck |
1 similar comment
cicheck |
cicheck |
14 similar comments
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
cicheck |
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.
good job
tools-v2/README.md
Outdated
|
||
```shell | ||
curve bs query snapshot --path /test/test111 --snapshotstatus done | ||
(other status: "in-progess" "deleting" "errorDeleteing" "canceling" "error") |
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.
Maybe ##
is better than ()
.
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.
Thanks for your comment, but I don't understand the ##, any example?
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.
for example,
curve bs query snapshot --path /test/test111 --snapshotstatus done # other status: "in-progess" "deleting" "errorDeleteing" "canceling" "error"
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.
It looks like done
is a keyword in shell, is that a problem?
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.
It seems to be fine in the tests, and done should work only with for or while etc.
|
||
const ( | ||
snapshotExample = `$ curve bs query snapshot --path /test/test111 --snapshotstatus done | ||
(other status: "in-progress" "deleting" "errorDeleteing" "canceling" "error")` |
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.
ditto. And extra space will be shown if call help
.
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.
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.
yeah
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.
PTAL, thanks@montaguelhz
cicheck |
2 similar comments
cicheck |
cicheck |
|
||
const ( | ||
snapshotExample = `$ curve bs query snapshot --path /test/test111 --snapshotstatus done | ||
(other status: "in-progress" "deleting" "errorDeleteing" "canceling" "error")` |
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.
Sorry, maybe I didn't make myself clear, please keep the README and the example consistent, all use #
. this is the last suggestion.
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.
Understand, that has been corrected.
Signed-off-by: ZackSoul <[email protected]>
cicheck |
2 similar comments
cicheck |
cicheck |
cicheck |
1 similar comment
cicheck |
@caoxianfei1 it can be merged. |
What problem does this PR solve?
Issue Number: #2582
Problem Summary:
What is changed and how it works?
add curve bs query snapshot
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List