You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sa...@apache.org on 2012/02/03 22:43:40 UTC
svn commit: r1240352 -
/incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
Author: samindaw
Date: Fri Feb 3 21:43:39 2012
New Revision: 1240352
URL: http://svn.apache.org/viewvc?rev=1240352&view=rev
Log:
session active chk
Modified:
incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
Modified: incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java?rev=1240352&r1=1240351&r2=1240352&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java (original)
+++ incubator/airavata/trunk/modules/commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/impl/JCRRegistry.java Fri Feb 3 21:43:39 2012
@@ -109,9 +109,9 @@ public class JCRRegistry extends Observa
nodesToRemove.add(node);
}
} else {
- if (node.getSession().isLive() && node.getPath().startsWith(path)
+ if (node.getSession().isLive() && (node.getPath().startsWith(path)
|| path.startsWith(node
- .getPath())) {
+ .getPath()))) {
nodesToRemove.add(node);
}
}
@@ -122,8 +122,8 @@ public class JCRRegistry extends Observa
nodeIterator = getSessionNodeChildren().keySet();
nodesToRemove.clear();
for (Node node : nodeIterator) {
- if (node.getPath().startsWith(path)
- || path.startsWith(node.getPath())) {
+ if (node.getSession().isLive() && (node.getPath().startsWith(path)
+ || path.startsWith(node.getPath()))) {
nodesToRemove.add(node);
}
}