Skip to content

Commit

Permalink
add delta wire test and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Austin committed Aug 19, 2016
1 parent 19cdb4e commit f7933f5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,13 @@ ScanResult moveToIndexResult(long index) {
return ScanResult.NOT_REACHED;
}

ScanResult scanResult = FOUND;


index(index);
ScanResult scanResult = this.store.moveToIndexForRead(this, sequenceNumber);

scanResult = this.store.moveToIndexForRead(this, sequenceNumber);

Bytes<?> bytes = wire().bytes();
if (scanResult == FOUND) {
state = FOUND_CYCLE;
Expand Down Expand Up @@ -1155,6 +1160,7 @@ public final ExcerptTailer toStart() {
*
* @return the last index at the time this method was called.
*/

private long approximateLastIndex() throws EOFException {

RollCycle rollCycle = queue.rollCycle();
Expand Down Expand Up @@ -1295,7 +1301,7 @@ private void incrementIndex() {
}
}

this.index(rollCycle.toIndex(cycle, seq));
this.index = rollCycle.toIndex(cycle, seq);
}

// DON'T INLINE THIS METHOD, as it's used by enterprise chronicle queue
Expand Down

0 comments on commit f7933f5

Please sign in to comment.