activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1346401 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java
Date Tue, 05 Jun 2012 14:48:18 GMT
Author: gtully
Date: Tue Jun  5 14:48:17 2012
New Revision: 1346401

URL: http://svn.apache.org/viewvc?rev=1346401&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3288 - fix over flow to negative on signed int accumulator,
would break priority message deletion

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java?rev=1346401&r1=1346400&r2=1346401&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/adapter/DefaultJDBCAdapter.java
Tue Jun  5 14:48:17 2012
@@ -805,7 +805,7 @@ public class DefaultJDBCAdapter implemen
         }
     }
 
-    int priorityIterator = 0;
+    char priorityIterator = 0; // unsigned
     public void doDeleteOldMessages(TransactionContext c) throws SQLException, IOException
{
         PreparedStatement s = null;
         cleanupExclusiveLock.writeLock().lock();



Mime
View raw message