Skip to content

Commit

Permalink
Fix invalid cast to int, fixes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
jexp committed May 6, 2019
1 parent 14ef92f commit 5e66b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/neo4j/tool/StoreCopy.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private static boolean createRelationship(BatchInserter targetDb, BatchInserter
}

private static LongLongMap copyNodes(BatchInserter sourceDb, BatchInserter targetDb, Set<String> ignoreProperties, Set<String> ignoreLabels, Set<String> deleteNodesWithLabels, long highestNodeId, Flusher flusher, boolean stableNodeIds) {
MutableLongLongMap copiedNodes = stableNodeIds ? new LongLongHashMap() : new LongLongHashMap((int)highestNodeId);
MutableLongLongMap copiedNodes = stableNodeIds ? new LongLongHashMap() : new LongLongHashMap(highestNodeId > (long)Integer.MAX_VALUE ? Integer.MAX_VALUE : (int)highestNodeId);
long time = System.currentTimeMillis();
long node = 0;
long notFound = 0;
Expand Down

0 comments on commit 5e66b2d

Please sign in to comment.