Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emqttd_cm, emqtt_sm ets:match_delete/2 with wrong pattern #72

Closed
emqplus opened this issue Mar 19, 2015 · 1 comment
Closed

emqttd_cm, emqtt_sm ets:match_delete/2 with wrong pattern #72

emqplus opened this issue Mar 19, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@emqplus
Copy link
Contributor

emqplus commented Mar 19, 2015

No description provided.

@emqplus emqplus added the BUG label Mar 19, 2015
@emqplus emqplus self-assigned this Mar 19, 2015
@emqplus emqplus added this to the 0.5.4 milestone Mar 19, 2015
@emqplus
Copy link
Contributor Author

emqplus commented Mar 19, 2015

emqttd_cm.erl:

handle_info({'DOWN', MRef, process, DownPid, _Reason}, State) ->

  •   ets:match_delete(?CLIENT_TAB, {{'_', DownPid, MRef}}),
    
  •   ets:match_delete(?CLIENT_TAB, {'_', DownPid, MRef}),
    
    {noreply, setstats(State)};

emqttd_sm.erl:

--- a/apps/emqttd/src/emqttd_sm.erl
+++ b/apps/emqttd/src/emqttd_sm.erl
@@ -142,7 +142,7 @@ handle_cast(_Msg, State) ->
{noreply, State}.

handle_info({'DOWN', MRef, process, DownPid, _Reason}, State) ->

  •   ets:match_delete(?SESSION_TAB, {{'_', DownPid, MRef}}),
    
  •   ets:match_delete(?SESSION_TAB, {'_', DownPid, MRef}),
    

    {noreply, setstats(State)};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant