]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: drop redundant loading of dumpcontents
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 17 Aug 2016 06:34:01 +0000 (14:34 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 18 Aug 2016 11:58:02 +0000 (19:58 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMonitor.cc

index 04c75e59d5824c598937453a68feec35216fce86..d07f5110df8829390b72b313322d91a1596e4708 100644 (file)
@@ -1699,11 +1699,6 @@ bool PGMonitor::preprocess_command(MonOpRequestRef op)
     if (what.empty())
       what.insert("all");
     if (f) {
-      vector<string> dumpcontents;
-      if (cmd_getval(g_ceph_context, cmdmap, "dumpcontents", dumpcontents)) {
-       copy(dumpcontents.begin(), dumpcontents.end(),
-            inserter(what, what.end()));
-      }
       if (what.count("all")) {
        f->open_object_section("pg_map");
        pg_map.dump(f.get());