jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1127560 - in /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store: ObjectStore.java PersistentId.java
Date Wed, 25 May 2011 15:33:43 GMT
Author: stefan
Date: Wed May 25 15:33:42 2011
New Revision: 1127560

URL: http://svn.apache.org/viewvc?rev=1127560&view=rev
Log:
MicroKernel prototype (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/ObjectStore.java
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/PersistentId.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/ObjectStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/ObjectStore.java?rev=1127560&r1=1127559&r2=1127560&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/ObjectStore.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/ObjectStore.java
Wed May 25 15:33:42 2011
@@ -42,7 +42,7 @@ public class ObjectStore implements Cons
 
         // make sure we've got a HEAD commit
         String head = store.getHeadRevision();
-        if (head == null) {
+        if (head == null || head.length() == 0) {
             String rootNodeId = store.put(new MutableNode().toBytes());
             MutableCommit initialCommit = new MutableCommit();
             initialCommit.setCommitTS(System.currentTimeMillis());

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/PersistentId.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/PersistentId.java?rev=1127560&r1=1127559&r2=1127560&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/PersistentId.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/PersistentId.java
Wed May 25 15:33:42 2011
@@ -39,7 +39,7 @@ public class PersistentId {
         this.file = file;
 
         if (!file.exists()) {
-            set(null);
+            set("");
         } else {
             id = get();
         }



Mime
View raw message