jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1402081 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java
Date Thu, 25 Oct 2012 10:16:18 GMT
Author: mreutegg
Date: Thu Oct 25 10:16:18 2012
New Revision: 1402081

URL: http://svn.apache.org/viewvc?rev=1402081&view=rev
Log:
OAK-397: PropertyIndex does not respect unique=false

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java?rev=1402081&r1=1402080&r2=1402081&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexUpdate.java
Thu Oct 25 10:16:18 2012
@@ -80,7 +80,8 @@ class PropertyIndexUpdate {
     }
 
     public void apply() throws CommitFailedException {
-        boolean unique = node.getProperty("unique") != null;
+        boolean unique = node.getProperty("unique") != null
+                && node.getProperty("unique").getValue(Type.BOOLEAN);
         NodeBuilder index = node.child(":index");
 
         for (Map.Entry<String, Set<String>> entry : remove.entrySet()) {



Mime
View raw message