skip resource heavy commands from running on master nodes
This commit is contained in:
@@ -48,8 +48,8 @@ func (c *commandVolumeCheckDisk) Help() string {
|
||||
`
|
||||
}
|
||||
|
||||
func (c *commandVolumeCheckDisk) HasTag(CommandTag) bool {
|
||||
return false
|
||||
func (c *commandVolumeCheckDisk) HasTag(tag CommandTag) bool {
|
||||
return tag == ResourceHeavy
|
||||
}
|
||||
|
||||
func (c *commandVolumeCheckDisk) getVolumeStatusFileCount(vid uint32, dn *master_pb.DataNodeInfo) (totalFileCount, deletedFileCount uint64) {
|
||||
|
||||
Reference in New Issue
Block a user