]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix tcmalloc check.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 9 Jun 2011 22:26:13 +0000 (15:26 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 9 Jun 2011 22:33:21 +0000 (15:33 -0700)
We can run commands to do things like start the profiler even if
it's not already running!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/MDS.cc

index 687f2acc5e36ed856de769ab5ee6291875641ba0..d4dbd03786c26ad5239885981d206969fa1639b9 100644 (file)
@@ -804,7 +804,7 @@ void MDS::handle_command(MMonCommand *m)
     cpu_profiler_handle_command(m->cmd, clog);
   }
  else if (m->cmd[0] == "heap") {
-   if (!ceph_heap_profiler_running())
+   if (!ceph_using_tcmalloc())
      clog.info() << "tcmalloc not enabled, can't use heap profiler commands\n";
    else
      ceph_heap_profiler_handle_command(m->cmd, clog);