]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
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)
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

index 921969146aa5c77fe43d6b73ca5217701d7a2e67..ed5a5ca35f200752caa14dcfbd11066071ada38f 100644 (file)
@@ -218,7 +218,7 @@ void MDBalancer::send_heartbeat()
 
 
   set<mds_rank_t> up;
-  mds->get_mds_map()->get_mds_set(up);
+  mds->get_mds_map()->get_up_mds_set(up);
   for (set<mds_rank_t>::iterator p = up.begin(); p != up.end(); ++p) {
     if (*p == mds->get_nodeid())
       continue;