Skip to content
Browse files

Merge pull request #10 from dgomezferro/issue3

Use int for rows size
  • Loading branch information...
2 parents 7956078 + 533a6b3 commit e74117ea2dfe1f50329d3e797a43516834080678 @dgomezferro committed May 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/main/java/com/yahoo/omid/tso/ClientHandler.java
View
3 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 e74117e

Please sign in to comment.
Something went wrong with that request. Please try again.