Skip to content

Commit 6dfccdd

Browse files
authored
fix: distinguish between ch and core data access (#114)
1 parent 090a8b4 commit 6dfccdd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/java/com/graphhopper/storage/CHStorage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public CHStorage(Directory dir, String name, int segmentSize, boolean edgeBased)
7777

7878
public CHStorage(Directory dir, String name, int segmentSize, boolean edgeBased, String type) {
7979
this.isTypeCore = CHConfig.TYPE_CORE.equals(type);
80-
// ORS-GH MOD END
8180
this.edgeBased = edgeBased;
82-
this.nodesCH = dir.create("nodes_ch_" + name, dir.getDefaultType("nodes_ch_" + name, true), segmentSize);
83-
this.shortcuts = dir.create("shortcuts_" + name, dir.getDefaultType("shortcuts_" + name, true), segmentSize);
81+
this.nodesCH = dir.create("nodes_" + type + "_" + name, dir.getDefaultType("nodes_" + type + "_" + name, true), segmentSize);
82+
this.shortcuts = dir.create("shortcuts_" + type + "_" + name, dir.getDefaultType("shortcuts_" + type + "_" + name, true), segmentSize);
83+
// ORS-GH MOD END
8484
// shortcuts are stored consecutively using this layout (the last two entries only exist for edge-based):
8585
// NODEA | NODEB | WEIGHT | SKIP_EDGE1 | SKIP_EDGE2 | S_ORIG_FIRST | S_ORIG_LAST
8686
S_NODEA = 0;

0 commit comments

Comments
 (0)