mirror of https://github.com/apache/nifi.git
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…
Reference in New Issue