https://issues.apache.org/jira/browse/AMQ-1870 - fix on missed maxrow computation. thanks Keith

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1492698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2013-06-13 15:06:50 +00:00
parent 3845c7caa7
commit ada9e00b6d
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,7 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
} else {
s = c.getConnection().prepareStatement(this.statements.getFindNextMessagesStatement());
}
s.setMaxRows(Math.max(maxReturned * 2, maxRows));
s.setMaxRows(Math.min(maxReturned * 2, maxRows));
s.setString(1, destination.getQualifiedName());
s.setLong(2, nextSeq);
if (isPrioritizedMessages) {