]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix hiding mdsmonitor informative strings 14573/head
authorJohn Spray <john.spray@redhat.com>
Thu, 9 Mar 2017 13:15:46 +0000 (13:15 +0000)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Apr 2017 21:56:52 +0000 (23:56 +0200)
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>
(cherry picked from commit 00404ae9bd4cce0518a44d36d2d6a5612f4f9d04)

src/mon/MDSMonitor.cc

index 9015405ee2a9e86b630cbd20eb0f2a8b095e8110..01243a0e3ee4e3fa19560e694fa89b18119e9459 100644 (file)
@@ -2272,7 +2272,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;
@@ -2303,7 +2302,6 @@ int MDSMonitor::filesystem_command(
         return -EBUSY;
       } else {
         pending_fsmap.erase(gid, {});
-        stringstream ss;
         ss << "removed mds gid " << gid;
         return 0;
       }
@@ -2333,7 +2331,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") {