jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1444654 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java
Date Mon, 11 Feb 2013 03:52:06 GMT
Author: dbrosius
Date: Mon Feb 11 03:52:06 2013
New Revision: 1444654

URL: http://svn.apache.org/r1444654
Log:
use long math for maxAgeMilli to avoid integer overflow

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java?rev=1444654&r1=1444653&r2=1444654&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/data/MultiDataStore.java
Mon Feb 11 03:52:06 2013
@@ -557,7 +557,7 @@ public class MultiDataStore implements D
         protected void moveOutdatedData() {
             try {
                 long now = System.currentTimeMillis();
-                long maxAgeMilli = 1000 * 60 * 60 * 24 * maxAge;
+                long maxAgeMilli = 1000L * 60 * 60 * 24 * maxAge;
                 Iterator<DataIdentifier> allIdentifiers = primaryDataStore.getAllIdentifiers();
                 int moved = 0;
                 while (allIdentifiers.hasNext()) {



Mime
View raw message