refactor(emqx): Use emqx_ds_backends application
This commit is contained in:
parent
ef09cfcd71
commit
a0fbd37e58
|
@ -18,7 +18,7 @@
|
|||
sasl,
|
||||
lc,
|
||||
hocon,
|
||||
emqx_durable_storage,
|
||||
emqx_ds_backends,
|
||||
bcrypt,
|
||||
pbkdf2,
|
||||
emqx_http_lib,
|
||||
|
|
|
@ -62,7 +62,7 @@ translate_builtin(
|
|||
{emqx_ds_storage_reference, #{}}
|
||||
end,
|
||||
#{
|
||||
backend => builtin,
|
||||
backend => builtin_raft,
|
||||
n_shards => NShards,
|
||||
n_sites => NSites,
|
||||
replication_factor => ReplFactor,
|
||||
|
|
|
@ -570,7 +570,7 @@ wait_shards_online(Nodes = [Node | _]) ->
|
|||
?retry(500, 10, [?assertEqual(NShards, shards_online(N)) || N <- Nodes]).
|
||||
|
||||
shards_online(Node) ->
|
||||
length(erpc:call(Node, emqx_ds_builtin_db_sup, which_shards, [?PERSISTENT_MESSAGE_DB])).
|
||||
length(erpc:call(Node, emqx_ds_builtin_raft_db_sup, which_shards, [?PERSISTENT_MESSAGE_DB])).
|
||||
|
||||
get_mqtt_port(Node, Type) ->
|
||||
{_IP, Port} = erpc:call(Node, emqx_config, get, [[listeners, Type, default, bind]]),
|
||||
|
|
|
@ -180,7 +180,7 @@ prometheus_per_db(NodeOrAggr) ->
|
|||
prometheus_per_db(NodeOrAggr, DB, Acc)
|
||||
end,
|
||||
#{},
|
||||
emqx_ds_builtin_db_sup:which_dbs()
|
||||
emqx_ds_builtin_raft_db_sup:which_dbs()
|
||||
).
|
||||
|
||||
%% This function returns the data in the following format:
|
||||
|
@ -246,7 +246,7 @@ prometheus_per_shard(NodeOrAggr) ->
|
|||
)
|
||||
end,
|
||||
#{},
|
||||
emqx_ds_builtin_db_sup:which_dbs()
|
||||
emqx_ds_builtin_raft_db_sup:which_dbs()
|
||||
).
|
||||
|
||||
prometheus_per_shard(NodeOrAggr, DB, Shard, Acc0) ->
|
||||
|
|
Loading…
Reference in New Issue