Skip to content

Commit 639bd9a

Browse files
committed
Check GraphHopper profiles after initializing the graph
1 parent 9a88d52 commit 639bd9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/com/graphhopper/GraphHopper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -773,15 +773,14 @@ public boolean load(String graphHopperFolder) {
773773
if (encodingManager == null)
774774
setEncodingManager(EncodingManager.create(encodedValueFactory, flagEncoderFactory, ghLocation));
775775

776-
checkProfilesConsistency();
777-
778776
if (!allowWrites && dataAccessType.isMMap())
779777
dataAccessType = DAType.MMAP_RO;
780778

781779
GHDirectory dir = new GHDirectory(ghLocation, dataAccessType);
782-
783780
ghStorage = new GraphHopperStorage(dir, encodingManager, hasElevation(), encodingManager.needsTurnCostsSupport(), defaultSegmentSize);
784781

782+
checkProfilesConsistency();
783+
785784
if (lmPreparationHandler.isEnabled())
786785
initLMPreparationHandler();
787786

0 commit comments

Comments
 (0)