Author: kfujino
Date: Mon Sep  7 06:01:47 2015
New Revision: 1701548

URL: http://svn.apache.org/r1701548
Log:
Fix a default clusterListeners in SimpleTcpCluster.
The optimal default value is different for each session manager.
ClusterSessionListener is never used in BackupManager.

Modified:
    tomcat/tc8.0.x/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
    tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml

Modified: 
tomcat/tc8.0.x/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java?rev=1701548&r1=1701547&r2=1701548&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java 
(original)
+++ tomcat/tc8.0.x/trunk/java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java 
Mon Sep  7 06:01:47 2015
@@ -553,7 +553,7 @@ public class SimpleTcpCluster extends Li
     }
 
     protected void checkDefaults() {
-        if ( clusterListeners.size() == 0 ) {
+        if ( clusterListeners.size() == 0 && managerTemplate instanceof 
DeltaManager ) {
             addClusterListener(new ClusterSessionListener());
         }
         if ( valves.size() == 0 ) {

Modified: tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml?rev=1701548&r1=1701547&r2=1701548&view=diff
==============================================================================
--- tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc8.0.x/trunk/webapps/docs/changelog.xml Mon Sep  7 06:01:47 2015
@@ -73,6 +73,16 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Cluster">
+    <changelog>
+      <fix>
+        Fix a default clusterListeners in <code>SimpleTcpCluster</code>. The
+        optimal default value is different for each session manager.
+        <code>ClusterSessionListener</code> is never used in
+        <code>BackupManager</code>. (kfujino)
+      </fix>
+    </changelog>
+  </subsection>
   <subsection name="Web applications">
     <changelog>
       <fix>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to