Skip to content

Commit 1c43cad

Browse files
gogo9thquisacrc
andauthored
Fixing the worker's ID logic of ResourceStresser (#200)
Fix #199. Co-authored-by: quisacrc <[email protected]>
1 parent 1fcbffe commit 1c43cad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/oltpbenchmark/benchmarks/resourcestresser/ResourceStresserBenchmark.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ protected List<Worker<? extends BenchmarkModule>> makeWorkersImpl() {
4747
int numKeys = (int) (workConf.getScaleFactor() * ResourceStresserConstants.RECORD_COUNT);
4848
int keyRange = numKeys / workConf.getTerminals();
4949
LOG.warn("numkeys={}, keyRange={}", numKeys, keyRange);
50-
// TODO: check ranges
5150
for (int i = 0; i < workConf.getTerminals(); i++) {
52-
workers.add(new ResourceStresserWorker(this, i + 1, numKeys, keyRange));
51+
workers.add(new ResourceStresserWorker(this, i, numKeys, keyRange));
5352
}
5453

5554
return workers;

0 commit comments

Comments
 (0)