Skip to content

Commit

Permalink
dont check --batch/--concurrent/--objects consistency with --list-exi…
Browse files Browse the repository at this point in the history
…sting (#348)
  • Loading branch information
fatpat authored Nov 28, 2024
1 parent 44b87b6 commit a860612
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cli/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ func checkDeleteSyntax(ctx *cli.Context) {
if ctx.Int("batch") < 1 {
console.Fatal("batch size much be 1 or bigger")
}
wantO := ctx.Int("batch") * ctx.Int("concurrent") * 4
if ctx.Int("objects") < wantO {
console.Fatalf("Too few objects: With current --batch and --concurrent settings, at least %d objects should be used for a valid benchmark. Use --objects=%d", wantO, wantO)
if !ctx.Bool("list-existing") {
wantO := ctx.Int("batch") * ctx.Int("concurrent") * 4
if ctx.Int("objects") < wantO {
console.Fatalf("Too few objects: With current --batch and --concurrent settings, at least %d objects should be used for a valid benchmark. Use --objects=%d", wantO, wantO)
}
}
}

0 comments on commit a860612

Please sign in to comment.