fix(dsapi): Check status of the node via Mria

This commit is contained in:
ieQu1 2024-05-24 20:58:45 +02:00
parent 7f356aa3a8
commit 73df01e934
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ get_site(get, #{bindings := #{site := Site}}) ->
?NOT_FOUND(<<"Site not found: ", Site/binary>>);
true ->
Node = emqx_ds_replication_layer_meta:node(Site),
IsUp = lists:member(Node, [node() | nodes()]),
IsUp = mria:cluster_status(Node) =:= running,
Shards = shards_of_site(Site),
?OK(#{
node => Node,