Permalink
Browse files

Use int for number of rows

closes #3
  • Loading branch information...
1 parent 7956078 commit 533a6b38fce28e8b3226a108d56428c06917791d @dgomezferro dgomezferro committed May 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/com/yahoo/omid/tso/ClientHandler.java
@@ -304,10 +304,9 @@ private void sendCommitRequest(final long timestamp) {
boolean readOnly = (rnd.nextFloat() * 100) < percentReads;
- byte size = readOnly ? 0 : (byte) rnd.nextInt(MAX_ROW);
+ int size = readOnly ? 0 : rnd.nextInt(MAX_ROW);
final RowKey [] rows = new RowKey[size];
for (byte i = 0; i < rows.length; i++) {
- // long l = rnd.nextLong();
long l = rnd.nextInt(DB_SIZE);
byte[] b = new byte[8];
for (int iii = 0; iii < 8; iii++) {

0 comments on commit 533a6b3

Please sign in to comment.