]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix hiding mdsmonitor informative strings 13904/head
authorJohn Spray <john.spray@redhat.com>
Thu, 9 Mar 2017 13:15:46 +0000 (13:15 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 9 Mar 2017 13:16:39 +0000 (13:16 +0000)
Local `stringstream ss` declarations were hiding
the real variable used to feed back to the user.

Fixes: http://tracker.ceph.com/issues/16709
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/MDSMonitor.cc

index 0758eca19d372bfa664a7d76a1d54033a66908f2..016026485e4dca8e90f9e9928678c8f98c807967 100644 (file)
@@ -1369,7 +1369,6 @@ int MDSMonitor::filesystem_command(
       pending_fsmap.modify_daemon(gid, [state](MDSMap::mds_info_t *info) {
         info->state = state;
       });
-      stringstream ss;
       ss << "set mds gid " << gid << " to state " << state << " "
          << ceph_mds_state_name(state);
       return 0;
@@ -1400,7 +1399,6 @@ int MDSMonitor::filesystem_command(
         return -EBUSY;
       } else {
         pending_fsmap.erase(gid, {});
-        stringstream ss;
         ss << "removed mds gid " << gid;
         return 0;
       }
@@ -1430,7 +1428,6 @@ int MDSMonitor::filesystem_command(
       fs->mds_map.failed.erase(role.rank);
     });
 
-    stringstream ss;
     ss << "removed failed mds." << role;
     return 0;
   } else if (prefix == "mds compat rm_compat") {