Skip to content

Commit

Permalink
enhanced locking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardikjoshi committed Dec 5, 2023
1 parent c3f6a8f commit 4191932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_graph/transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_transaction(**config, &block)
alias transaction write_transaction

def lock_node(node)
node.as(:n).query.set('n._LOCK_ = null').exec if tx&.open? || explicit_session&.open?
node.as(:n).query.remove('n._LOCK_').exec if tx&.open? || explicit_session&.open?
end

private
Expand Down

0 comments on commit 4191932

Please sign in to comment.