1. Justin Sheehy
  2. riak

Commits

justin  committed 2deb701

remove extra usort, via Dave Smith

  • Participants
  • Parent commits 1fe40c8
  • Branches default

Comments (0)

Files changed (1)

File src/riak_ring.erl

View file
 % @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.