forked from TrueCloudLab/frostfs-node
Dmitrii Stepanov
581887148a
It does the same as `control shards flush-writecache --seal`, but has better name. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
29 lines
717 B
Go
29 lines
717 B
Go
package control
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var shardsCmd = &cobra.Command{
|
|
Use: "shards",
|
|
Short: "Operations with storage node's shards",
|
|
Long: "Operations with storage node's shards",
|
|
}
|
|
|
|
func initControlShardsCmd() {
|
|
shardsCmd.AddCommand(listShardsCmd)
|
|
shardsCmd.AddCommand(setShardModeCmd)
|
|
shardsCmd.AddCommand(evacuateShardCmd)
|
|
shardsCmd.AddCommand(evacuationShardCmd)
|
|
shardsCmd.AddCommand(flushCacheCmd)
|
|
shardsCmd.AddCommand(doctorCmd)
|
|
shardsCmd.AddCommand(writecacheShardCmd)
|
|
|
|
initControlShardsListCmd()
|
|
initControlSetShardModeCmd()
|
|
initControlEvacuateShardCmd()
|
|
initControlEvacuationShardCmd()
|
|
initControlFlushCacheCmd()
|
|
initControlDoctorCmd()
|
|
initControlShardsWritecacheCmd()
|
|
}
|