mds: comment out unused code in mds dump_pop_map

Signed-off-by: Tom Callaway <spot@redhat.com>
Signed-off-by: David Nalley <david@gnsa.us>
This commit is contained in:
Tom Callaway 2012-02-17 08:58:40 -08:00 committed by Sage Weil
parent 95633b9b88
commit d938246c50

View File

@ -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();
*/
}