From: Joao Eduardo Luis Date: Fri, 20 Sep 2013 15:43:27 +0000 (+0100) Subject: mds: MDS: pass only heap profiler commands instead of the whole cmd vector X-Git-Tag: v0.67.4~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f32f57b98e0224a1d30b2a81d7d260be0f53800;p=ceph.git 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 (cherry picked from commit 238fe272c6bdb62d4e57fd8555c0136de99c8129) --- diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index e70d6fd4dff8..70c5efbec585 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 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;