Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #506 from basho/adt-handle-tombstone

Handle tombstones when accumulating sources
  • Loading branch information...
commit 3cf31cf6e5e189ae3377b1b614debc9dd03323ab 2 parents c387669 + 2fdc747
@Vagabond Vagabond authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/riak_core_security.erl
View
4 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,
Please sign in to comment.
Something went wrong with that request. Please try again.