[metadata_dumper] Fix bug where ranges were appearing in all devices for small metadata.

Author: Teng-Feng Yang
This commit is contained in:
Joe Thornber 2013-07-09 13:28:36 +01:00
parent 2ea9cf9961
commit f2fe3ba2b3

View File

@ -71,10 +71,11 @@ namespace {
return false; return false;
} }
for (unsigned i = 0; i < n.get_nr_entries(); i++) { if (loc.path[0] == dev_id_)
mapping_tree_detail::block_time bt = n.value_at(i); for (unsigned i = 0; i < n.get_nr_entries(); i++) {
add_mapping(n.key_at(i), bt.block_, bt.time_); mapping_tree_detail::block_time bt = n.value_at(i);
} add_mapping(n.key_at(i), bt.block_, bt.time_);
}
return true; return true;
} }