Skip to content

Commit

Permalink
Include raft groups in server req jsz
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <[email protected]>
  • Loading branch information
ripienaar committed Aug 23, 2023
1 parent 7c0ad87 commit ebbfb2e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions cli/server_request_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ type SrvRequestCmd struct {
offset int
waitFor uint32

includeAccounts bool
includeStreams bool
includeConsumers bool
includeConfig bool
leaderOnly bool
includeAll bool
includeDetails bool
includeAccounts bool
includeStreams bool
includeConsumers bool
includeConfig bool
leaderOnly bool
includeRaftGroups bool
includeAll bool
includeDetails bool

detail bool
sortOpt string
Expand Down Expand Up @@ -122,6 +123,7 @@ func configureServerRequestCommand(srv *fisk.CmdClause) {
jsz.Flag("streams", "Include details about Streams").UnNegatableBoolVar(&c.includeStreams)
jsz.Flag("consumer", "Include details about Consumers").UnNegatableBoolVar(&c.includeConsumers)
jsz.Flag("config", "Include details about configuration").UnNegatableBoolVar(&c.includeConfig)
jsz.Flag("raft", "Include details about raft groups").UnNegatableBoolVar(&c.includeRaftGroups)
jsz.Flag("leader", "Request a response from the Meta-group leader only").UnNegatableBoolVar(&c.leaderOnly)
jsz.Flag("all", "Include accounts, streams, consumers and configuration").UnNegatableBoolVar(&c.includeAll)

Expand Down Expand Up @@ -289,6 +291,9 @@ func (c *SrvRequestCmd) jsz(_ *fisk.ParseContext) error {
if c.includeConfig || c.includeAll {
opts.JSzOptions.Config = true
}
if c.includeRaftGroups || c.includeAll {
opts.JSzOptions.RaftGroups = true
}

res, err := c.doReq("JSZ", &opts, nc)
if err != nil {
Expand Down

0 comments on commit ebbfb2e

Please sign in to comment.