Skip to content

Commit

Permalink
core: flush caches if rollback happens during module schema install. (#…
Browse files Browse the repository at this point in the history
…3248)

Fixes #3164
  • Loading branch information
mworrell committed Jan 12, 2023
1 parent a05e728 commit f78f554
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/support/z_module_manager.erl
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ start_child(ManagerPid, Module, ModuleSup, Spec, Exports, Context) ->
% Try to start it
z_supervisor:start_child(ModuleSup, Spec#child_spec.name, ?MODULE_START_TIMEOUT);
Error ->
z:flush(Context),
lager:error("Error starting module ~p, Schema initialization error:~n~p~n",
[Module, Error]),
{error, {schema_init, Error}}
Expand Down

0 comments on commit f78f554

Please sign in to comment.