Skip to content

Commit

Permalink
Merge pull request #312 from rabbitmq/md/khepri-path-in-khepri-tx
Browse files Browse the repository at this point in the history
khepri_tx_adv: Allow calls to `khepri_path` in transactions
  • Loading branch information
dumbbell authored Dec 17, 2024
2 parents 8e5703e + f6c7b25 commit 5186e9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/khepri_tx_adv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,20 @@ ensure_bif_is_valid(Bif, Arity) ->
is_remote_call_valid(khepri_payload, no_payload, 0) -> true;
is_remote_call_valid(khepri_payload, data, 1) -> true;

is_remote_call_valid(khepri_path, compile, _) -> true;
is_remote_call_valid(khepri_path, from_string, _) -> true;
is_remote_call_valid(khepri_path, from_binary, _) -> true;
is_remote_call_valid(khepri_path, to_string, _) -> true;
is_remote_call_valid(khepri_path, to_binary, _) -> true;
is_remote_call_valid(khepri_path, combine_with_conditions, _) -> true;
is_remote_call_valid(khepri_path, targets_specific_node, _) -> true;
is_remote_call_valid(khepri_path, component_targets_specific_node, _) -> true;
is_remote_call_valid(khepri_path, is_valid, _) -> true;
is_remote_call_valid(khepri_path, ensure_is_valid, _) -> true;
is_remote_call_valid(khepri_path, abspath, _) -> true;
is_remote_call_valid(khepri_path, realpath, _) -> true;
is_remote_call_valid(khepri_path, pattern_includes_root_node, _) -> true;

is_remote_call_valid(khepri_tx, is_empty, _) -> true;
is_remote_call_valid(khepri_tx, get, _) -> true;
is_remote_call_valid(khepri_tx, get_or, _) -> true;
Expand Down

0 comments on commit 5186e9b

Please sign in to comment.