tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r380100 - /tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
Date Thu, 23 Feb 2006 12:08:23 GMT
Author: fhanik
Date: Thu Feb 23 04:08:14 2006
New Revision: 380100

URL: http://svn.apache.org/viewcvs?rev=380100&view=rev
Log:
Correct formatting

Modified:
    tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java

Modified: tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java?rev=380100&r1=380099&r2=380100&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
(original)
+++ tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/session/DeltaManager.java
Thu Feb 23 04:08:14 2006
@@ -1069,29 +1069,29 @@
      * @param session cross context session
      */
     protected void registerSessionAtReplicationValve(DeltaSession session) {
-	    	if(replicationValve == null) {
-	    		if(container instanceof StandardContext
-	    				&& ((StandardContext)container).getCrossContext()) {
-	    			Cluster cluster = getCluster() ;
-	    			if(cluster != null && cluster instanceof CatalinaCluster) {
-	    				Valve[] valves = ((CatalinaCluster)cluster).getValves();
-	    				if(valves != null && valves.length > 0) {
-	    					for(int i=0; replicationValve == null && i < valves.length ; i++ ){
-	    						if(valves[i] instanceof ReplicationValve)
-	    							replicationValve = (ReplicationValve)valves[i] ;
-	    					}
-	    					
-	    					if(replicationValve == null && log.isDebugEnabled()) {
-	    						log.debug("no ReplicationValve found for CrossContext Support");
-	    					}
-	    				}
-	    			}
-	    		}
-	    	}
-	    	if(replicationValve != null) {
-	    		replicationValve.registerReplicationSession(session);
-	    	}
-    	}
+        if(replicationValve == null) {
+            if(container instanceof StandardContext
+                    && ((StandardContext)container).getCrossContext()) {
+                Cluster cluster = getCluster() ;
+                if(cluster != null && cluster instanceof CatalinaCluster) {
+                    Valve[] valves = ((CatalinaCluster)cluster).getValves();
+                    if(valves != null && valves.length > 0) {
+                        for(int i=0; replicationValve == null && i < valves.length
; i++ ){
+                            if(valves[i] instanceof ReplicationValve)
+                                replicationValve = (ReplicationValve)valves[i] ;
+                        }
+
+                        if(replicationValve == null && log.isDebugEnabled()) {
+                            log.debug("no ReplicationValve found for CrossContext Support");
+                        }
+                    }
+                }
+            }
+        }
+        if(replicationValve != null) {
+            replicationValve.registerReplicationSession(session);
+        }
+    }
     
     /**
      * Find the master of the session state



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


Mime
View raw message