Skip to content

Commit

Permalink
chore: filter poolboy_sup during the upgrade (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
abc3 authored Mar 26, 2024
1 parent cd38a94 commit aec9139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.46
1.1.47
4 changes: 4 additions & 0 deletions lib/supavisor/hot_upgrade.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ defmodule Supavisor.HotUpgrade do
]),
{_, child_pid, _, [:poolboy]} <- Supervisor.which_children(pid),
linked_pid <- Process.info(child_pid)[:links],
match?(
{:supervisor, :poolboy_sup, _},
Process.info(linked_pid)[:dictionary][:"$initial_call"]
),
state = :sys.get_state(linked_pid),
Record.is_record(state, :state),
state(state, :module) == :poolboy_sup do
Expand Down

0 comments on commit aec9139

Please sign in to comment.