Skip to content

Commit

Permalink
Fixing the worker's ID logic of ResourceStresser (cmu-db#200)
Browse files Browse the repository at this point in the history
Fix cmu-db#199.

Co-authored-by: quisacrc <[email protected]>
  • Loading branch information
gogo9th and quisacrc authored Jul 14, 2022
1 parent 1fcbffe commit 1c43cad
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ protected List<Worker<? extends BenchmarkModule>> makeWorkersImpl() {
int numKeys = (int) (workConf.getScaleFactor() * ResourceStresserConstants.RECORD_COUNT);
int keyRange = numKeys / workConf.getTerminals();
LOG.warn("numkeys={}, keyRange={}", numKeys, keyRange);
// TODO: check ranges
for (int i = 0; i < workConf.getTerminals(); i++) {
workers.add(new ResourceStresserWorker(this, i + 1, numKeys, keyRange));
workers.add(new ResourceStresserWorker(this, i, numKeys, keyRange));
}

return workers;
Expand Down

0 comments on commit 1c43cad

Please sign in to comment.