From: Changcheng Liu Date: Wed, 12 Aug 2020 01:17:56 +0000 (+0800) Subject: mon: use string_view for string content and define val where it's used X-Git-Tag: v16.1.0~1381^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1c721a67988dd579af0739c13f854792577f3f9f;p=ceph.git mon: use string_view for string content and define val where it's used Signed-off-by: Changcheng Liu --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 0e47ffea0fb8..3ca46e9bc02b 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -3268,7 +3268,6 @@ void Monitor::handle_command(MonOpRequestRef op) return; } - string module; string err; dout(0) << "handle_command " << *m << dendl; @@ -3287,7 +3286,7 @@ void Monitor::handle_command(MonOpRequestRef op) return; } - module = fullcmd[0]; + std::string_view module = fullcmd[0]; // validate command is in leader map