]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: clarify MDBalancer::send_heartbeat
authorJohn Spray <john.spray@redhat.com>
Thu, 26 Mar 2015 12:22:43 +0000 (12:22 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 26 Mar 2015 12:54:53 +0000 (12:54 +0000)
commitaae265bfe1d3aa80daed0ed7e323d0e15efbb6a9
tree92c6582c986a22f5fd38d1b1b8403cf68a915713
parent9008a3391d526d6f7aa314113f0999e0f97446ff
mds: clarify MDBalancer::send_heartbeat

The initial is_degraded() check guarantees that
the 'in' set is equal to the 'up' set.  Later,
this calls get_mds_set and assigns it to a variable
called 'up'.

It's clearer to use get_up_mds_set into the variable
called up (this was confusing when debugging #11218
which was itself a result of is_degraded() ignoring
damaged ranks).

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDBalancer.cc