directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1553680 - in /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider: ReplicaEventLog.java ReplicaEventLogJanitor.java
Date Fri, 27 Dec 2013 14:53:38 GMT
Author: kayyagari
Date: Fri Dec 27 14:53:38 2013
New Revision: 1553680

URL: http://svn.apache.org/r1553680
Log:
retain replica event logs active forever by default

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLog.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLogJanitor.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLog.java?rev=1553680&r1=1553679&r2=1553680&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLog.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLog.java
Fri Dec 27 14:53:38 2013
@@ -115,8 +115,8 @@ public class ReplicaEventLog implements 
 
     public static final int DEFAULT_PURGE_THRESHOLD_COUNT = 10000;
 
-    /** The max delay for an idle replication log with no activity */
-    public static final int DEFAULT_MAX_IDLE_PERIOD = 2 * 24 * 60 * 60;
+    /** The max delay for an idle replication log with no activity, by default the logs have
no idle time period */
+    public static final int DEFAULT_MAX_IDLE_PERIOD = -1;
 
 
     /**

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLogJanitor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLogJanitor.java?rev=1553680&r1=1553679&r2=1553680&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLogJanitor.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/provider/ReplicaEventLogJanitor.java
Fri Dec 27 14:53:38 2013
@@ -96,7 +96,8 @@ public class ReplicaEventLogJanitor exte
                         LOG.debug( "checking log idle time now={} lastUpdatedTime={} maxIdleTime={}",
now,
                             lastUpdatedTime, maxIdleTime );
 
-                        if ( ( now - lastUpdatedTime ) >= maxIdleTime )
+                        // DO NOT delete those with maxIdleTime <= 0
+                        if ( ( maxIdleTime > 0 ) && ( now - lastUpdatedTime )
>= maxIdleTime )
                         {
                             //max idle time of the event log reached, delete it
                             removeEventLog( log );



Mime
View raw message