summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pg2_backport.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pg2_backport.erl b/src/pg2_backport.erl
index 353bef0e..faa77552 100644
--- a/src/pg2_backport.erl
+++ b/src/pg2_backport.erl
@@ -207,9 +207,12 @@ terminate(_Reason, _S) ->
store(List) ->
_ = [(assure_group(Name)
andalso
- [join_group(Name, P) || P <- Members -- group_members(Name)]) ||
+ store2(Name, Members)) ||
[Name, Members] <- List],
ok.
+store2(Name, Members) ->
+ [join_group(Name, P) || P <- Members -- group_members(Name)],
+ true.
assure_group(Name) ->
Key = {group, Name},