jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r1138447 - /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Date Wed, 22 Jun 2011 13:06:04 GMT
Author: stefan
Date: Wed Jun 22 13:06:03 2011
New Revision: 1138447

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

getJournal(): represent property deletions as "^ /some/prop:null"

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1138447&r1=1138446&r2=1138447&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Wed Jun 22 13:06:03 2011
@@ -166,8 +166,12 @@ public class MicroKernelImpl implements 
                     }
 
                     public void propDeleted(String nodePath, String propName, String value)
{
-                        buff.append("- ").
+                        // since property and node deletions can't be distinguished
+                        // using the "- <path>" notation we're representing
+                        // property deletions as "^ <path>:null"
+                        buff.append("^ ").
                             key(PathUtils.concat(nodePath, propName)).
+                            encodedValue("null").
                             append("\n");
                     }
 



Mime
View raw message