Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a84cd293 authored by Sam Lang's avatar Sam Lang Committed by Sage Weil
Browse files

ceph: Use pseudo-random numbers to choose mds

We don't need to use up entropy to choose an mds,
so use prandom_u32() to get a pseudo-random number.

Also, we don't need to choose a random mds if only
one mds is available, so add special casing for the
common case.

Fixes http://tracker.ceph.com/issues/3579



Signed-off-by: default avatarSam Lang <sam.lang@inktank.com>
Reviewed-by: default avatarGreg Farnum <greg@inktank.com>
Reviewed-by: default avatarAlex Elder <elder@inktank.com>
parent 8b3e1a56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment