Skip to content

Commit

Permalink
kernel: Avoid auto connect for pg discover message
Browse files Browse the repository at this point in the history
ToDo: The 'sync' message still does auto connect as it uses
      gen_server:cast, which lacks noconnect option.
  • Loading branch information
sverker authored and Ledest committed Jun 10, 2024
1 parent 20f072c commit 680b0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_ext/pg.erl
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ handle_info({nodedown, _Node}, State) ->
handle_info({nodeup, Node}, State) when Node =:= node() ->
{noreply, State};
handle_info({nodeup, Node}, #state{scope = Scope} = State) ->
{Scope, Node} ! {discover, self()},
erlang:send({Scope, Node}, {discover, self()}, [noconnect]),
{noreply, State};

handle_info(_Info, _State) ->
Expand Down

0 comments on commit 680b0ef

Please sign in to comment.