mempool: do not skip first 2 mempools

This broke when we sorted the pool definitions in the header.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-03-30 14:01:05 -04:00
parent 066514c37c
commit 6af489121b
2 changed files with 3 additions and 4 deletions

View File

@ -39,9 +39,9 @@ const char *mempool::get_pool_name(mempool::pool_index_t ix) {
return names[ix];
}
void mempool::dump(ceph::Formatter *f, size_t skip)
void mempool::dump(ceph::Formatter *f)
{
for (size_t i = skip; i < num_pools; ++i) {
for (size_t i = 0; i < num_pools; ++i) {
const pool_t &pool = mempool::get_pool((pool_index_t)i);
f->open_object_section(get_pool_name((pool_index_t)i));
pool.dump(f);

View File

@ -249,8 +249,7 @@ public:
void dump(ceph::Formatter *f) const;
};
// skip unittest_[12] by default
void dump(ceph::Formatter *f, size_t skip=2);
void dump(ceph::Formatter *f);
// STL allocator for use with containers. All actual state