Skip to content

Commit

Permalink
fix: maintain state when scale down ends
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Aug 16, 2024
1 parent ee9d66e commit aa8496c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/emqttb_group.erl
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ scale_down(0, S) ->
scale_down(NRepeats, S = #s{id = Group}) ->
case ets:first(live_id_pool(Group)) of
'$end_of_table' ->
ok;
S;
Id ->
case ets:lookup(live_id_pool(Group), Id) of
[] ->
Expand Down

0 comments on commit aa8496c

Please sign in to comment.