-
Notifications
You must be signed in to change notification settings - Fork 72
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
support incremental formatting #288
Conversation
5325d2a
to
12c6cd2
Compare
got! |
@liuminjian squash one commit. |
59ee06e
to
168ba62
Compare
done |
-fileSystemPath=$chunkfile_pool_dir | ||
fi | ||
|
||
|
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.
The parameters of curve_format is incremental precent default and seems to be unnecessary to modify the script.
8e18359
to
d7c2108
Compare
|
||
if [ $minus -gt 0 ] | ||
then | ||
$binary \ |
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 it not works, do you have test it?
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.
8984710
to
c592f95
Compare
@@ -131,6 +134,7 @@ func genFormatPlaybook(curveadm *cli.CurveAdm, | |||
stopFormat := options.stopFormat | |||
debug := options.debug | |||
clean := options.clean | |||
increment := options.increment | |||
|
|||
steps := FORMAT_PLAYBOOK_STEPS | |||
if showStatus { |
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.
may be we can use playbook playbook.STOP_SERVICE
.
for example:
FORMAT_INCREMENT_PLAYBOOK_STEPS := int[]{
playbook.STOP_SERVICE,
playbook.FORMAT_CHUNKFILE_POOL,
}
if increment {
steps = FORMAT_INCREMENT_PLAYBOOK_STEPS
}
stopChunkServercs = curveadm.FilterDeployConfig(dcs, topology.FilterOption{
Role: "chunkserver",
})
if len(stopChunkServercs) == 0 {
// no chunkserver
}
if step == playbook.STOP_SERVICE {
pb.AddStep(&playbook.PlaybookStep{
...
Configs: stopChunkServercs
} else ...
}
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.
done
51eac15
to
ddfb79a
Compare
Signed-off-by: liuminjian <[email protected]> support incremental formatting Signed-off-by: liuminjian <[email protected]> support incremental formatting Signed-off-by: liuminjian <[email protected]>
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!
This pr resolves #189 .
新增参数--increment