Skip to content

Commit 9c89e39

Browse files
Register relationship ids as state visitor
1 parent 6382924 commit 9c89e39

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cypher/api/storage-engine-adapter/src/main/java/org/neo4j/gds/compat/AbstractInMemoryStorageEngine.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public AbstractInMemoryStorageEngine(
9191
graphStore,
9292
newCommandCreationContext(EmptyMemoryTracker.INSTANCE)
9393
);
94+
graphStore.initialize(tokenHolders);
95+
9496
this.countsStore = countsStoreFn.apply(graphStore, tokenHolders);
9597
this.metadataProvider = metadataProvider;
9698
}

cypher/api/storage-engine-adapter/src/main/java/org/neo4j/gds/compat/TokenManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class TokenManager implements CypherGraphStore.StateVisitor {
5151

5252
public void init() {
5353
initializeTokensFromGraphStore();
54-
graphStore.initialize(tokenHolders);
5554
graphStore.registerStateVisitor(this);
5655
}
5756

cypher/cypher-core/src/main/java/org/neo4j/gds/core/cypher/CypherGraphStore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public CypherGraphStore(GraphStore graphStore) {
4949

5050
public void initialize(TokenHolders tokenHolders) {
5151
this.relationshipIds = RelationshipIds.fromGraphStore(innerGraphStore(), tokenHolders);
52+
registerStateVisitor(relationshipIds);
5253
}
5354

5455
public void registerStateVisitor(StateVisitor stateVisitor) {

0 commit comments

Comments
 (0)