Skip to content

Commit

Permalink
nouveau: fix rexi_DOWN clause
Browse files Browse the repository at this point in the history
reported in #5002

the badrecord is because we execute the second clause of handle_message
and mess up the internal state (just returning the Counters rather than a
state record around it)
  • Loading branch information
rnewson committed Mar 25, 2024
1 parent e75b98f commit c72960e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nouveau/src/nouveau_fabric_search.erl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ handle_message({rexi_DOWN, _, {_, NodeRef}, _}, _Shard, State) ->
#state{counters = Counters0} = State,
case fabric_util:remove_down_workers(Counters0, NodeRef, []) of
{ok, Counters1} ->
{ok, Counters1};
{ok, State#state{counters = Counters1}};
error ->
{error, {nodedown, <<"progress not possible">>}}
end;
Expand Down

0 comments on commit c72960e

Please sign in to comment.