]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: Removing dead code
authorErwan Velu <erwan@redhat.com>
Tue, 12 Jan 2016 09:36:51 +0000 (10:36 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 19 Jan 2016 10:05:22 +0000 (11:05 +0100)
The assignation of head is useless as its never used after.
This patch simply remove dead/useless code.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/mon/PGMonitor.cc

index 6cfa82ac1a1c2f5e89ef332ac168209fb6b0a159..63ed5f200f3f62dca89635060f19011d1e17c651 100644 (file)
@@ -1697,7 +1697,6 @@ bool PGMonitor::preprocess_command(MonOpRequestRef op)
        }
        if (what.count("pools")) {
          pg_map.dump_pool_stats(ds, header);
-         header = false;
        }
        if (what.count("osds")) {
          pg_map.dump_osd_stats(ds);