You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2006/03/16 13:48:10 UTC

svn commit: r386322 - /tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java

Author: fhanik
Date: Thu Mar 16 04:48:09 2006
New Revision: 386322

URL: http://svn.apache.org/viewcvs?rev=386322&view=rev
Log:
Fixed primary session settings as per pero's fix

Modified:
    tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java

Modified: tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java?rev=386322&r1=386321&r2=386322&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java (original)
+++ tomcat/container/tc5.5.x/modules/ha/src/share/org/apache/catalina/ha/tcp/ReplicationValve.java Thu Mar 16 04:48:09 2006
@@ -468,6 +468,7 @@
         Session contextSession = request.getSessionInternal(false);
         if(contextSession != null & contextSession instanceof DeltaSession){
             resetDeltaRequest(contextSession);
+            ((DeltaSession)contextSession).setPrimarySession(true);
         }
         if(isCrossContext) {
             Object sessions = crossContextSessions.get();
@@ -477,6 +478,9 @@
                 for(; iter.hasNext() ;) {          
                     Session session = (Session)iter.next();
                     resetDeltaRequest(session);
+                    if(session instanceof DeltaSession)
+                        ((DeltaSession)contextSession).setPrimarySession(true);
+
                 }
             }
         }                     



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