Skip to content

Commit

Permalink
Merge pull request #9790 from tinwelint/2.3-cypher-close-kernel-state…
Browse files Browse the repository at this point in the history
…ment-on-del-check

TransactionBoundQueryContext no longer creates new statements
  • Loading branch information
tinwelint committed Aug 9, 2017
2 parents 0a8e561 + 7f03e92 commit e90408c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,7 @@ final class TransactionBoundQueryContext(graph: GraphDatabaseAPI,

override def nodeIsDense(node: Long): Boolean = statement.readOperations().nodeIsDense(node)

private def kernelStatement: KernelStatement =
txBridge
.getKernelTransactionBoundToThisThread(true)
.acquireStatement()
.asInstanceOf[KernelStatement]
private def kernelStatement = statement.asInstanceOf[KernelStatement]

class NodeOperations extends BaseOperations[Node] {
def delete(obj: Node) {
Expand Down

0 comments on commit e90408c

Please sign in to comment.