chore: update appup.src for v4.4

This commit is contained in:
JianBo He 2022-04-06 20:22:39 +08:00 committed by Zaiming (Stone) Shi
parent bad227c45d
commit 243a30dacb
3 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
%% -*-: erlang -*-
{VSN,
[
{<<"4\\.3\\.[0-1]">>, [
{<<"4\\.4\\.0">>, [
{load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []}
]},
{<<".*">>, []}
],
[
{<<"4\\.3\\.[0-1]">>, [
{<<"4\\.4\\.0">>, [
{load_module, emqx_auth_jwt_svr, brutal_purge, soft_purge, []}
]},
{<<".*">>, []}

View File

@ -4,10 +4,10 @@
[{"4.4.0",
[{load_module,emqx_exhook_sup,brutal_purge,soft_purge,[]},
{load_module,emqx_exhook_server,brutal_purge,soft_purge,[]},
{load_module,emqx_exhook_mngr,brutal_purge,soft_purge,[]}]},
{update, emqx_exhook_mngr, {advanced, ["4.4.0"]}}]},
{<<".*">>,[]}],
[{"4.4.0",
[{load_module,emqx_exhook_sup,brutal_purge,soft_purge,[]},
{load_module,emqx_exhook_server,brutal_purge,soft_purge,[]},
{load_module,emqx_exhook_mngr,brutal_purge,soft_purge,[]}]},
{update, emqx_exhook_mngr, {advanced, ["4.4.0"]}}]},
{<<".*">>,[]}]}.

View File

@ -218,7 +218,7 @@ terminate(_Reason, State = #state{running = Running}) ->
%% in the emqx_exhook:v4.3.5, we have added one new field in the state last:
%% - hooks_options :: map()
code_change({down, _Vsn}, State, [ToVsn]) ->
case re:run(ToVsn, "4\\.3\\.[0-4]") of
case re:run(ToVsn, "4\\.4\\.0") of
{match, _} ->
NState = list_to_tuple(
lists:droplast(
@ -228,7 +228,7 @@ code_change({down, _Vsn}, State, [ToVsn]) ->
{ok, State}
end;
code_change(_Vsn, State, [FromVsn]) ->
case re:run(FromVsn, "4\\.3\\.[0-4]") of
case re:run(FromVsn, "4\\.4\\.0") of
{match, _} ->
NState = list_to_tuple(
tuple_to_list(State) ++ [?DEFAULT_HOOK_OPTS]),