ceph/ceph-0.39-comment-out-unused-code-in-dump_pop_map.patch
2012-02-16 21:21:05 -05:00

34 lines
940 B
Diff

diff -up ceph-0.39/src/mds/MDBalancer.cc.fix ceph-0.39/src/mds/MDBalancer.cc
--- ceph-0.39/src/mds/MDBalancer.cc.fix 2012-02-16 12:23:26.582302711 -0500
+++ ceph-0.39/src/mds/MDBalancer.cc 2012-02-16 12:31:44.386396603 -0500
@@ -1155,6 +1155,7 @@ void MDBalancer::dump_pop_map()
{
return; // this is dumb
+/*
char fn[32];
snprintf(fn, sizeof(fn), "popdump.%d.mds%d", beat_epoch, mds->get_nodeid());
@@ -1174,10 +1175,9 @@ void MDBalancer::dump_pop_map()
iq.pop_front();
// pop stats
- /*for (int a=0; a<MDS_NPOP; a++)
- for (int b=0; b<META_NPOP; b++)
- myfile << in->popularity[a].pop[b].get(now) << "\t";
- */
+ //for (int a=0; a<MDS_NPOP; a++)
+ // for (int b=0; b<META_NPOP; b++)
+ // myfile << in->popularity[a].pop[b].get(now) << "\t";
// recurse, depth-first.
if (in->is_dir()) {
@@ -1214,6 +1214,7 @@ void MDBalancer::dump_pop_map()
}
myfile.close();
+*/
}