]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGMonitor: dead code removal
authorDan Mick <dan.mick@inktank.com>
Fri, 24 May 2013 20:57:32 +0000 (13:57 -0700)
committerDan Mick <dan.mick@inktank.com>
Fri, 24 May 2013 20:57:32 +0000 (13:57 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/mon/PGMonitor.cc

index f65445adf53cb79c52de1bfb3eef6404a967bf5f..581391f7bbc3684f47eb725a1c880e754fc270cb 100644 (file)
@@ -1164,8 +1164,6 @@ bool PGMonitor::preprocess_command(MMonCommand *m)
        copy(dumpcontents.begin(), dumpcontents.end(),
             inserter(what, what.end()));
       }
-      if (what.empty())
-       what.insert("all");
       if (what.count("all")) {
        f->open_object_section("pg_map");
        pg_map.dump(f.get());
@@ -1190,7 +1188,6 @@ bool PGMonitor::preprocess_command(MMonCommand *m)
       // plain format ignores dumpcontents
       pg_map.dump(ds);
     }
-    rdata.append(ds);
     ss << "dumped " << what << " in format " << format;
     r = 0;
   } else if (prefix == "pg dump_stuck") {