]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon: remove unused variable
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 12 Aug 2020 01:20:09 +0000 (09:20 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 12 Aug 2020 01:25:19 +0000 (09:25 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/mon/Monitor.cc
src/mon/OSDMonitor.cc

index 3ca46e9bc02b439f40283fa0eaa4829e0a746547..2e599973ede250f0d93e7bc949c1a86881371219 100644 (file)
@@ -3268,8 +3268,6 @@ void Monitor::handle_command(MonOpRequestRef op)
     return;
   }
 
-  string err;
-
   dout(0) << "handle_command " << *m << dendl;
 
   string format;
index 1881d49a98b520826bf31032454f2eee638b24fc..6baf67a2bfe7a3979de345a0d3ae94b281e11638 100644 (file)
@@ -5390,7 +5390,6 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
           prefix == "osd getcrushmap" ||
           prefix == "osd ls-tree" ||
           prefix == "osd info") {
-    string val;
 
     epoch_t epoch = 0;
     int64_t epochnum;