From: John Spray Date: Mon, 14 Mar 2016 23:40:54 +0000 (+0000) Subject: mds: fix whitespace in is_cluster_available X-Git-Tag: v10.1.1~114^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=401c1866cd543ea97afc8f73da7c2313217df0e5;p=ceph.git mds: fix whitespace in is_cluster_available This got mangled somehow. Signed-off-by: John Spray --- diff --git a/src/mds/MDSMap.cc b/src/mds/MDSMap.cc index e9b4e8559cb6..bf4746740e39 100644 --- a/src/mds/MDSMap.cc +++ b/src/mds/MDSMap.cc @@ -667,14 +667,14 @@ MDSMap::availability_t MDSMap::is_cluster_available() const return STUCK_UNAVAILABLE; } - for (const auto rank : in) { - if (up.count(rank) && mds_info.at(up.at(rank)).laggy()) { - // This might only be transient, but because we can't see - // standbys, we have no way of knowing whether there is a - // standby available to replace the laggy guy. - return STUCK_UNAVAILABLE; - } -} + for (const auto rank : in) { + if (up.count(rank) && mds_info.at(up.at(rank)).laggy()) { + // This might only be transient, but because we can't see + // standbys, we have no way of knowing whether there is a + // standby available to replace the laggy guy. + return STUCK_UNAVAILABLE; + } + } if (get_num_mds(CEPH_MDS_STATE_ACTIVE) > 0) { // Nobody looks stuck, so indicate to client they should go ahead