summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Eduardo Luis <jecluis@gmail.com>2013-09-20 16:43:27 +0100
committerJoao Eduardo Luis <jecluis@gmail.com>2013-09-20 17:51:21 +0100
commit238fe272c6bdb62d4e57fd8555c0136de99c8129 (patch)
tree0eba51d1211f13cc4f72c7713782b8be399727c0
parentc98b910d49bd2b46ceafdc430044a31524c29f5b (diff)
downloadceph-238fe272c6bdb62d4e57fd8555c0136de99c8129.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>
-rw-r--r--src/mds/MDS.cc4
1 files changed, 3 insertions, 1 deletions
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<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;