Skip to content

Commit

Permalink
Need to actually return result of transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
tnavatar committed Aug 15, 2024
1 parent b658903 commit 5ce0a8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/genegraph/framework/storage/rdf.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
(do ~@body)
(try
(.begin ~db ReadWrite/READ)
(do ~@body
(.commit ~db)) ; https://github.com/apache/jena/issues/2584
(let [result# (do ~@body)]
(.commit ~db) ; https://github.com/apache/jena/issues/2584
result#)
(finally (.end ~db)))))

(defrecord RDFStore [instance
Expand Down

0 comments on commit 5ce0a8d

Please sign in to comment.