mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 10:38:33 +00:00
nifi-1272 Fixing a bug in StandardProcessSession.get(int) which returns incorrect number of flowfiles
Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
f239be289e
commit
fa4c5314ca
@ -1210,7 +1210,7 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
||||
|
||||
@Override
|
||||
public FlowFileFilterResult filter(final FlowFile flowFile) {
|
||||
if (++polled <= maxResults) {
|
||||
if (++polled < maxResults) {
|
||||
return FlowFileFilterResult.ACCEPT_AND_CONTINUE;
|
||||
} else {
|
||||
return FlowFileFilterResult.ACCEPT_AND_TERMINATE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user