mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2436 - jdbc sync under high load
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@820955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa9ff75d45
commit
94708a284d
|
@ -22,11 +22,13 @@ import java.sql.ResultSet;
|
|||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import org.apache.activemq.command.ActiveMQDestination;
|
||||
import org.apache.activemq.command.MessageId;
|
||||
import org.apache.activemq.command.SubscriptionInfo;
|
||||
|
@ -55,7 +57,7 @@ public class DefaultJDBCAdapter implements JDBCAdapter {
|
|||
private static final Log LOG = LogFactory.getLog(DefaultJDBCAdapter.class);
|
||||
protected Statements statements;
|
||||
protected boolean batchStatments = true;
|
||||
private Set<Long> lastRecoveredMessagesIds = new TreeSet<Long>();
|
||||
private Set<Long> lastRecoveredMessagesIds = Collections.synchronizedSet(new TreeSet<Long>());
|
||||
|
||||
protected void setBinaryData(PreparedStatement s, int index, byte data[]) throws SQLException {
|
||||
s.setBytes(index, data);
|
||||
|
|
Loading…
Reference in New Issue