mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
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:
parent
066514c37c
commit
6af489121b
@ -39,9 +39,9 @@ const char *mempool::get_pool_name(mempool::pool_index_t ix) {
|
|||||||
return names[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);
|
const pool_t &pool = mempool::get_pool((pool_index_t)i);
|
||||||
f->open_object_section(get_pool_name((pool_index_t)i));
|
f->open_object_section(get_pool_name((pool_index_t)i));
|
||||||
pool.dump(f);
|
pool.dump(f);
|
||||||
|
@ -249,8 +249,7 @@ public:
|
|||||||
void dump(ceph::Formatter *f) const;
|
void dump(ceph::Formatter *f) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// skip unittest_[12] by default
|
void dump(ceph::Formatter *f);
|
||||||
void dump(ceph::Formatter *f, size_t skip=2);
|
|
||||||
|
|
||||||
|
|
||||||
// STL allocator for use with containers. All actual state
|
// STL allocator for use with containers. All actual state
|
||||||
|
Loading…
Reference in New Issue
Block a user