usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject git commit: fix shard allocation time uuids, Not sure this is right
Date Tue, 09 Sep 2014 23:16:15 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o cc90ffb9e -> bc1b1e737


fix shard allocation time uuids, Not sure this is right


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/bc1b1e73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/bc1b1e73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/bc1b1e73

Branch: refs/heads/two-dot-o
Commit: bc1b1e7377d0ed5f987510e72b18a643c9172dbb
Parents: cc90ffb
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Tue Sep 9 17:15:59 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Tue Sep 9 17:15:59 2014 -0600

----------------------------------------------------------------------
 .../serialization/impl/shard/impl/NodeShardAllocationImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/bc1b1e73/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
index 832d9b0..94c5ecb 100644
--- a/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
+++ b/stack/corepersistence/graph/src/main/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/impl/NodeShardAllocationImpl.java
@@ -275,7 +275,7 @@ public class NodeShardAllocationImpl implements NodeShardAllocation {
         for ( DirectedEdgeMeta.NodeMeta node : directedEdgeMeta.getNodes() ) {
 
             //short circuit
-            if(!isNew){
+            if(!isNew || node.getId().getUuid().version() == 4){
                 return false;
             }
 


Mime
View raw message