Merge pull request #12985 from thalesmg/fix-mv-cluster-metrics-r57-20240507

fix(message validation): apply config CRUD operations on whole cluster
This commit is contained in:
Thales Macedo Garitezi 2024-05-07 11:10:58 -03:00 committed by GitHub
commit d4d2b4c460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ list() ->
-spec reorder([validation_name()]) ->
{ok, _} | {error, _}.
reorder(Order) ->
emqx:update_config(
emqx_conf:update(
?VALIDATIONS_CONF_PATH,
{reorder, Order},
#{override_to => cluster}
@ -95,7 +95,7 @@ lookup(Name) ->
-spec insert(validation()) ->
{ok, _} | {error, _}.
insert(Validation) ->
emqx:update_config(
emqx_conf:update(
?VALIDATIONS_CONF_PATH,
{append, Validation},
#{override_to => cluster}
@ -104,7 +104,7 @@ insert(Validation) ->
-spec update(validation()) ->
{ok, _} | {error, _}.
update(Validation) ->
emqx:update_config(
emqx_conf:update(
?VALIDATIONS_CONF_PATH,
{update, Validation},
#{override_to => cluster}
@ -113,7 +113,7 @@ update(Validation) ->
-spec delete(validation_name()) ->
{ok, _} | {error, _}.
delete(Name) ->
emqx:update_config(
emqx_conf:update(
?VALIDATIONS_CONF_PATH,
{delete, Name},
#{override_to => cluster}