From af65310ce77f680e6573c0379bdc63a2ff42b5a7 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 15 Mar 2022 10:40:37 +0800 Subject: [PATCH] chore(script): update_appup.escript support the update cmd We often use the advanced directive `update` when hot upgrading gen_server, gen_statem, and other such processes, and it will be parsed as: ``` {suspend,[Mod]}, {load,{Mod,brutal_purge,brutal_purge}}, {code_change,up,[{Mod,[Extra]}]}, {resume,[Mod]}, ``` So, we should treat the update instruction as having completed the upgrade of this module. --- scripts/update_appup.escript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update_appup.escript b/scripts/update_appup.escript index 9083b62f1..840f63509 100755 --- a/scripts/update_appup.escript +++ b/scripts/update_appup.escript @@ -324,6 +324,8 @@ process_old_action({add_module, Module}) -> [Module]; process_old_action({delete_module, Module}) -> [Module]; +process_old_action({update, Module, _Change}) -> + [Module]; process_old_action(LoadModule) when is_tuple(LoadModule) andalso element(1, LoadModule) =:= load_module -> element(2, LoadModule);