diff options
author | Joao Eduardo Luis <jecluis@gmail.com> | 2013-09-20 16:43:27 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-09-24 09:02:36 -0700 |
commit | 3f32f57b98e0224a1d30b2a81d7d260be0f53800 (patch) | |
tree | e2c85ab1ef541bc494b2d2208db1bfc3bbd80ac2 | |
parent | 46dcc46617d8f35ab8433540b22343ddcbcc3716 (diff) | |
download | ceph-3f32f57b98e0224a1d30b2a81d7d260be0f53800.tar.gz |
mds: MDS: pass only heap profiler commands instead of the whole cmd vector
The heap profiler doesn't care, nor should it, what our command name is.
It only cares about the commands it handles.
Backport: dumpling
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
(cherry picked from commit 238fe272c6bdb62d4e57fd8555c0136de99c8129)
-rw-r--r-- | src/mds/MDS.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index e70d6fd4dff..70c5efbec58 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -800,7 +800,9 @@ void MDS::handle_command(MMonCommand *m) clog.info() << "tcmalloc not enabled, can't use heap profiler commands\n"; else { ostringstream ss; - ceph_heap_profiler_handle_command(m->cmd, ss); + vector<std::string> cmdargs; + cmdargs.insert(cmdargs.begin(), m->cmd.begin()+1, m->cmd.end()); + ceph_heap_profiler_handle_command(cmdargs, ss); clog.info() << ss.str(); } } else dout(0) << "unrecognized command! " << m->cmd << dendl; |