jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1329702 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/KernelContentRepository.java
Date Tue, 24 Apr 2012 13:17:51 GMT
Author: reschke
Date: Tue Apr 24 13:17:51 2012
New Revision: 1329702

URL: http://svn.apache.org/viewvc?rev=1329702&view=rev
Log:
add note type to root node

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/KernelContentRepository.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/KernelContentRepository.java?rev=1329702&r1=1329701&r2=1329702&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/KernelContentRepository.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/KernelContentRepository.java
Tue Apr 24 13:17:51 2012
@@ -59,9 +59,10 @@ public class KernelContentRepository imp
         // FIXME: workspace setup must be done elsewhere...
         queryEngine.init();
         NodeState root = nodeStore.getRoot();
+        
         NodeState wspNode = root.getChildNode(DEFAULT_WORKSPACE_NAME);
         if (wspNode == null) {
-            microKernel.commit("/", "+\"" + DEFAULT_WORKSPACE_NAME + "\":{}", null, null);
+            microKernel.commit("/", "+\"" + DEFAULT_WORKSPACE_NAME + "\":{}" + "^\"" + DEFAULT_WORKSPACE_NAME
+ "/jcr:primaryType\":\"nt:unstructured\" ", null, null);
         }
     }
 



Mime
View raw message