From: xie xingguo Date: Mon, 30 May 2016 09:03:45 +0000 (+0800) Subject: mon/PGMonitor: remove unused local variables "what" X-Git-Tag: ses5-milestone5~520^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5cc9f613e160d5315b0b69d07e6c46c59599abb6;p=ceph.git mon/PGMonitor: remove unused local variables "what" Signed-off-by: xie xingguo --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 741e06db3fb6..ac81028175d5 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1756,7 +1756,6 @@ bool PGMonitor::preprocess_command(MonOpRequestRef op) int64_t pool = -1; vectorstates; set pgs; - set what; cmd_getval(g_ceph_context, cmdmap, "pool", pool); cmd_getval(g_ceph_context, cmdmap, "osd", osd); cmd_getval(g_ceph_context, cmdmap, "states", states); @@ -1774,7 +1773,6 @@ bool PGMonitor::preprocess_command(MonOpRequestRef op) states.push_back("all"); while (!states.empty()) { string state = states.back(); - what.insert(state); pg_map.get_filtered_pg_stats(state,pool,osd,primary,pgs); states.pop_back(); }