1. Justin Sheehy
  2. riak

Commits

justin  committed 2deb701

remove extra usort, via Dave Smith

Comments (0)

Files changed (1)

File src/riak_ring.erl Modified

View file
  • Ignore whitespace
  • Hide word diff
 % @doc Return a randomly-chosen node from amongst the owners.
 % @spec random_node(State :: chstate()) -> Node :: term()
 random_node(State) ->
-    L = lists:usort(all_members(State)),
+    L = all_members(State),
     lists:nth(crypto:rand_uniform(1, length(L)+1), L).
 
 % @doc Provide all ownership information in the form of {Index,Node} pairs.