* feat(emqx_conf): move conf manager for emqx_machine to emqx_conf * chore(emqx_conf): change emqx:get_config/2 to emqx_conf:get/2 * fix: common test failed * fix: badmatch by typo wrong key * fix(emqx_conf): get the wrong core nodes * fix(emqx_conf): get core node's tnx_id not latest tnx_id * fix: add ro_transation when copy conf file * fix: delete debug info * fix: change ekka_rlog to mria_rlog * fix: remove cluster_rpc from emqx_machine. * fix: don't call ekka:start/0 explicitly * fix: ekka should be start in emqx_machine
23 lines
436 B
Erlang
23 lines
436 B
Erlang
|
|
-ifndef(EMQ_X_CONF_HRL).
|
|
-define(EMQ_X_CONF_HRL, true).
|
|
|
|
-define(CLUSTER_RPC_SHARD, emqx_cluster_rpc_shard).
|
|
|
|
-define(CLUSTER_MFA, cluster_rpc_mfa).
|
|
-define(CLUSTER_COMMIT, cluster_rpc_commit).
|
|
|
|
-record(cluster_rpc_mfa, {
|
|
tnx_id :: pos_integer(),
|
|
mfa :: mfa(),
|
|
created_at :: calendar:datetime(),
|
|
initiator :: node()
|
|
}).
|
|
|
|
-record(cluster_rpc_commit, {
|
|
node :: node(),
|
|
tnx_id :: pos_integer() | '$1'
|
|
}).
|
|
|
|
-endif.
|