]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: reset the return value for heap command 45155/head
authorXiubo Li <xiubli@redhat.com>
Tue, 20 Apr 2021 05:54:11 +0000 (13:54 +0800)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 25 Feb 2022 08:10:49 +0000 (09:10 +0100)
Fixes: https://tracker.ceph.com/issues/50433
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit e694f0a92367b7672fcbeab9c104fd055765a36c)

src/mds/MDSDaemon.cc

index f875715009170c37b793e3355d0b6bd6b33e3f34..7b3976e3513839b6c8f46e3f89decdc208127def 100644 (file)
@@ -177,6 +177,7 @@ void MDSDaemon::asok_command(
        heapcmd_vec.push_back(value);
       }
       ceph_heap_profiler_handle_command(heapcmd_vec, ss);
+      r = 0;
     }
   } else if (command == "cpu_profiler") {
     string arg;