Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use int for rows size #10

Merged
merged 1 commit into from

1 participant

@dgomezferro
Owner

closes #3

@dgomezferro dgomezferro merged commit e74117e into yahoo:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. @dgomezferro

    Use int for number of rows

    dgomezferro authored
    closes #3
This page is out of date. Refresh to see the latest.
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++) {
Something went wrong with that request. Please try again.