jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1057229 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java
Date Mon, 10 Jan 2011 15:07:04 GMT
Author: thomasm
Date: Mon Jan 10 15:07:04 2011
New Revision: 1057229

URL: http://svn.apache.org/viewvc?rev=1057229&view=rev
Log:
JCR-2857 Support sequential (non-random) node ids

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java?rev=1057229&r1=1057228&r2=1057229&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeIdFactory.java
Mon Jan 10 15:07:04 2011
@@ -80,7 +80,7 @@ public class NodeIdFactory {
             }
             String m = p.getProperty(MSB, defaultMsb);
             if (m.length() == 0) {
-                msb = UUID.randomUUID().getLeastSignificantBits();
+                msb = UUID.randomUUID().getMostSignificantBits();
                 // ensure it doesn't conflict with version 1-5 UUIDs
                 msb &= ~0xf000;
             } else {



Mime
View raw message