fix(upgrade): default val for trans lock type.
This commit is contained in:
parent
2f405f9fa6
commit
b45a60fd3c
|
@ -251,7 +251,7 @@ delete_trie_route(Route = #route{topic = Topic}) ->
|
||||||
%% @private
|
%% @private
|
||||||
-spec(maybe_trans(function(), list(any())) -> ok | {error, term()}).
|
-spec(maybe_trans(function(), list(any())) -> ok | {error, term()}).
|
||||||
maybe_trans(Fun, Args) ->
|
maybe_trans(Fun, Args) ->
|
||||||
case persistent_term:get(emqx_route_lock_type) of
|
case persistent_term:get(emqx_route_lock_type, key) of
|
||||||
key ->
|
key ->
|
||||||
trans(Fun, Args);
|
trans(Fun, Args);
|
||||||
global ->
|
global ->
|
||||||
|
|
Loading…
Reference in New Issue