Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
39412: cli: add default ballast size of 1GB r=bdarnell a=Gurio

Resolves cockroachdb#38661
Defaults the size of the ballast debug command to 1GB

Co-authored-by: Arseni Lapunov <re.stage00101@gmail.com>
  • Loading branch information
craig[bot] and Gurio committed Aug 8, 2019
2 parents c8d4a59 + 23b76a2 commit d7ec277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/cli/cliflags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ Also, if you use equal signs in the file path to a store, you must use the
Description: `
The Size to fill Store upto(using a ballast file):
Negative value means denotes amount of space that should be left after filling the disk.
If the Size is left unspecified, it defaults to 1GB.
<PRE>
--size=20GiB
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func initCLIDefaults() {
debugCtx.inputFile = ""
debugCtx.printSystemConfig = false
debugCtx.maxResults = 1000
debugCtx.ballastSize = base.SizeSpec{}
debugCtx.ballastSize = base.SizeSpec{InBytes: 1000000000}

serverCfg.ReadyFn = nil
serverCfg.DelayedBootstrapFn = nil
Expand Down

0 comments on commit d7ec277

Please sign in to comment.