Skip to content

Commit 5596997

Browse files
committed
cleanup some ancient compat
1 parent 58c6152 commit 5596997

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

procedures/facade/src/main/java/org/neo4j/gds/procedures/KernelTransactionAccessor.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@
3030
public class KernelTransactionAccessor {
3131
public KernelTransaction getKernelTransaction(Context context) {
3232
try {
33-
// this is not opening something new that we should close
34-
// it only fetches the current transaction
35-
// compare to what Neo4j does in: https://github.com/neo-technology/neo4j/blame/5.7.0/public/community/neo4j/src/main/java/org/neo4j/graphdb/facade/DatabaseManagementServiceFactory.java#L368-L369
36-
// newer Neo4j versions offer a more direct method: https://github.com/neo-technology/neo4j/blob/e6a228f60efac4fd2584f5ec00de0207aad944ff/public/community/neo4j/src/main/java/org/neo4j/graphdb/facade/DatabaseManagementServiceFactory.java#L356
37-
// we should make sure we do this in a compatible way
38-
return context.internalTransaction().kernelTransaction();
33+
return context.kernelTransaction();
3934
} catch (ProcedureException e) {
40-
// Neo4j itself throws a different exception here; see https://github.com/neo-technology/neo4j/blob/340b40bb956d077b3127c8ba8eb33f2d288bc844/public/community/procedure/src/main/java/org/neo4j/procedure/impl/FieldSetter.java#L44-L49
4135
throw new RuntimeException(e);
4236
}
4337
}

0 commit comments

Comments
 (0)