Skip to content

Commit

Permalink
return paritition in applyToPartition in QueryCancellationChecker ins…
Browse files Browse the repository at this point in the history
…tead of adding stopping transformation at the end of the stack
  • Loading branch information
smiklosovic committed Dec 9, 2024
1 parent 8e35519 commit fad5823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java/org/apache/cassandra/db/ReadCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ private class QueryCancellationChecker extends StoppingTransformation<Unfiltered
protected UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
{
maybeCancel();
return Transformation.apply(partition, this);
return partition;
}

@Override
Expand Down Expand Up @@ -798,7 +798,7 @@ private static class DelayInjector extends Transformation<UnfilteredRowIterator>
protected UnfilteredRowIterator applyToPartition(UnfilteredRowIterator partition)
{
FBUtilities.sleepQuietly(TEST_ITERATION_DELAY_MILLIS);
return Transformation.apply(partition, this);
return partition;
}

@Override
Expand Down

0 comments on commit fad5823

Please sign in to comment.