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: mark-v0.70-wip~28^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=238fe272c6bdb62d4e57fd8555c0136de99c8129;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 --- diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index fc05ca0ecb7..c2e0bbbe369 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;