fix(upgrade): default val for trans lock type.

This commit is contained in:
William Yang 2021-05-04 09:56:06 +02:00 committed by Zaiming (Stone) Shi
parent 2f405f9fa6
commit b45a60fd3c
1 changed files with 1 additions and 1 deletions

View File

@ -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 ->