From 4191932c71ea1cba1b259535d63db50143bb2f58 Mon Sep 17 00:00:00 2001 From: Hardik Joshi Date: Tue, 5 Dec 2023 23:29:00 +0530 Subject: [PATCH] enhanced locking logic --- lib/active_graph/transactions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_graph/transactions.rb b/lib/active_graph/transactions.rb index 5ad72f384..6e125879f 100644 --- a/lib/active_graph/transactions.rb +++ b/lib/active_graph/transactions.rb @@ -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