Permalink
Browse files

Handle tombstones when accumulating sources

  • Loading branch information...
1 parent 73aff56 commit 2fdc7478bc755a8c45cf140102a764ee0102ee00 @Vagabond Vagabond committed Jan 15, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/riak_core_security.erl
@@ -229,7 +229,9 @@ authenticate(Username, Password, ConnInfo) ->
{error, unknown_user};
UserData ->
Sources0 = riak_core_metadata:fold(fun({{Un, CIDR}, [{Source, Options}]}, Acc) ->
- [{Un, CIDR, Source, Options}|Acc]
+ [{Un, CIDR, Source, Options}|Acc];
+ ({{_, _}, [?TOMBSTONE]}, Acc) ->
+ Acc
end, [], {<<"security">>, <<"sources">>}),
Sources = sort_sources(Sources0),
case match_source(Sources, Username,

0 comments on commit 2fdc747

Please sign in to comment.