Skip to content

Commit

Permalink
Use int for number of rows
Browse files Browse the repository at this point in the history
closes #3
  • Loading branch information
dgomezferro committed May 4, 2012
1 parent 7956078 commit 533a6b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/yahoo/omid/tso/ClientHandler.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -304,10 +304,9 @@ private void sendCommitRequest(final long timestamp) {


boolean readOnly = (rnd.nextFloat() * 100) < percentReads; 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]; final RowKey [] rows = new RowKey[size];
for (byte i = 0; i < rows.length; i++) { for (byte i = 0; i < rows.length; i++) {
// long l = rnd.nextLong();
long l = rnd.nextInt(DB_SIZE); long l = rnd.nextInt(DB_SIZE);
byte[] b = new byte[8]; byte[] b = new byte[8];
for (int iii = 0; iii < 8; iii++) { for (int iii = 0; iii < 8; iii++) {
Expand Down

0 comments on commit 533a6b3

Please sign in to comment.