From c425bdb6152d5b96158ed742652b57327e0205e4 Mon Sep 17 00:00:00 2001 From: liu shi Date: Fri, 14 May 2021 03:52:27 -0400 Subject: [PATCH] mds: reset code after cpu_profiler Signed-off-by: liu shi (cherry picked from commit f1afb7b1b8d1b4873730e1b88a552213e4c51977) --- src/mds/MDSDaemon.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 74def09ea072..f87571500917 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -184,6 +184,7 @@ void MDSDaemon::asok_command( vector argvec; get_str_vec(arg, argvec); cpu_profiler_handle_command(argvec, ss); + r = 0; } else { if (mds_rank == NULL) { dout(1) << "Can't run that command on an inactive MDS!" << dendl; -- 2.47.3