fix(eval): use running node for rpc eval, not a fresh one
With the previous arguments, a fresh hidden node with the same name as the expected running one was being started and commands were being run there. This caused commands like `ekka_cluster:info()` to report seemingly weird results.
This commit is contained in:
parent
f24b3f416e
commit
03e0c5ef2a
4
bin/emqx
4
bin/emqx
|
@ -864,10 +864,12 @@ case "${COMMAND}" in
|
||||||
then
|
then
|
||||||
"$REL_DIR/elixir" \
|
"$REL_DIR/elixir" \
|
||||||
--hidden \
|
--hidden \
|
||||||
|
--name "rand-$(relx_gen_id)-$NAME" \
|
||||||
--cookie "$COOKIE" \
|
--cookie "$COOKIE" \
|
||||||
--boot "$REL_DIR/start_clean" \
|
--boot "$REL_DIR/start_clean" \
|
||||||
--boot-var RELEASE_LIB "$ERTS_LIB_DIR" \
|
--boot-var RELEASE_LIB "$ERTS_LIB_DIR" \
|
||||||
--vm-args "$(latest_vm_args 'EMQX_NODE__NAME')"\
|
--vm-args "$REL_DIR/remote.vm.args" \
|
||||||
|
--erl "-start_epmd false -epmd_module ekka_epmd" \
|
||||||
--rpc-eval "$NAME" "$@"
|
--rpc-eval "$NAME" "$@"
|
||||||
else
|
else
|
||||||
relx_nodetool "eval" "$@"
|
relx_nodetool "eval" "$@"
|
||||||
|
|
Loading…
Reference in New Issue