]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: remove unused local variables "what"
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 30 May 2016 09:03:45 +0000 (17:03 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 30 May 2016 09:03:45 +0000 (17:03 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMonitor.cc

index 741e06db3fb6c269f5992d4e1774c69637621f2b..ac81028175d5d86d1c146c998db7f6c290d35073 100644 (file)
@@ -1756,7 +1756,6 @@ bool PGMonitor::preprocess_command(MonOpRequestRef op)
     int64_t pool = -1;
     vector<string>states;
     set<pg_t> pgs;
-    set<string> 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();
     }