Skip to content

Commit

Permalink
Fix bug in Tap
Browse files Browse the repository at this point in the history
  • Loading branch information
erichwang committed Oct 24, 2012
1 parent 24c970c commit c055e38
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -95,12 +95,12 @@ public AdvanceResult advanceToPosition(long position)

private void processCurrentValueIfNecessary(AdvanceResult advanceResult)
{
if (tupleStreamPosition == null) {
tupleStreamPosition = Cursors.asTupleStreamPosition(getDelegate());
}
switch (advanceResult) {
case SUCCESS:
if (getDelegate().getPosition() > measuredPosition) {
if (tupleStreamPosition == null) {
tupleStreamPosition = Cursors.asTupleStreamPosition(getDelegate());
}
tupleValueSink.process(tupleStreamPosition);
measuredPosition = getDelegate().getCurrentValueEndPosition();
}
Expand Down

0 comments on commit c055e38

Please sign in to comment.