mirror of https://github.com/apache/activemq.git
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:
parent
3845c7caa7
commit
ada9e00b6d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue