diff options
| author | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2016-08-15 11:43:23 +0100 |
|---|---|---|
| committer | Ayanda Dube <ayanda.dube@erlang-solutions.com> | 2016-08-15 11:43:23 +0100 |
| commit | 53f10c98bb16202c09c2567a2a0590dd8e1f8dc9 (patch) | |
| tree | e5abe4ddebd5bf6933fd05f1d78db3d821dbb04e | |
| parent | 6d0ca9cca257e61ffe522933a1bf6460c8047d5c (diff) | |
| download | rabbitmq-server-git-53f10c98bb16202c09c2567a2a0590dd8e1f8dc9.tar.gz | |
Adds check_membership/2 clause for handling non-existant gm group
| -rw-r--r-- | src/gm.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gm.erl b/src/gm.erl index 822d50252b..1507961df6 100644 --- a/src/gm.erl +++ b/src/gm.erl @@ -1600,7 +1600,9 @@ check_membership(Self, #gm_group{members = M} = Group) -> Group; false -> throw(lost_membership) - end. + end; +check_membership(_Self, {error, not_found}) -> + throw(lost_membership). check_membership(GroupName) -> case dirty_read_group(GroupName) of |
