jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1384243 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java
Date Thu, 13 Sep 2012 08:58:13 GMT
Author: mreutegg
Date: Thu Sep 13 08:58:12 2012
New Revision: 1384243

URL: http://svn.apache.org/viewvc?rev=1384243&view=rev
Log:
OAK-201: NamespaceRegistry is very slow

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java?rev=1384243&r1=1384242&r2=1384243&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/AbstractNameMapper.java
Thu Sep 13 08:58:12 2012
@@ -86,6 +86,8 @@ public abstract class AbstractNameMapper
         } else if (pos == 0) {
             // Internal name, should not be visible to JCR clients
             throw new IllegalStateException("internal Oak name: " + oakName);
+        } else if (!hasSessionLocalMappings()) {
+            return oakName;
         } else {
             String pref = oakName.substring(0, pos);
             String name = oakName.substring(pos + 1);



Mime
View raw message