Skip to content

Commit 4156040

Browse files
committed
Allow running vote without sharding
1 parent 542fcff commit 4156040

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

benchmarks/vote/vote.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ fn main() {
4848
.takes_value(false)
4949
.help("stage execution such that all writes are performed before all reads"),
5050
)
51+
.arg(
52+
Arg::with_name("unsharded")
53+
.long("unsharded")
54+
.takes_value(false)
55+
.help("disable sharding"),
56+
)
5157
.arg(
5258
Arg::with_name("distribution")
5359
.short("d")
@@ -235,6 +241,7 @@ fn main() {
235241
s.log = !args.is_present("quiet");
236242
s.transactions = args.is_present("transactions");
237243
s.stupid = args.is_present("stupid");
244+
s.sharding = !args.is_present("unsharded");
238245
let g = graph::make(s, persistence_params);
239246

240247
// prepare getters

0 commit comments

Comments
 (0)