Skip to content
Permalink
Browse files
Fix hash map keys in PutAllTask (#105)
  • Loading branch information
kamilla1201 authored and pivotal-jbarrett committed Sep 3, 2019
1 parent e45a12f commit 3ef30a406dbbd07b3de51aa224210951960c604f
Showing 1 changed file with 2 additions and 1 deletion.
@@ -51,9 +51,10 @@ public void setUp(BenchmarkConfiguration cfg) throws Exception {

@Override
public boolean test(Map<Object, Object> ctx) {
final long key = keyRange.random();
long key;
final HashMap<Object, Object> batch = new HashMap<>(batchSize);
for (int i = 0; i < batchSize; i++) {
key = keyRange.random();
batch.put(key, new Portfolio(key));
}
region.putAll(batch);

0 comments on commit 3ef30a4

Please sign in to comment.