diff options
author | Michal Jarzabek <stiopa@gmail.com> | 2016-05-16 22:43:21 +0200 |
---|---|---|
committer | Michal Jarzabek <stiopa@gmail.com> | 2016-05-17 19:01:26 +0200 |
commit | 1502c32f718fae7ffdd267310bf7e838fe3174ed (patch) | |
tree | db7705f38d84e8ead441819a29471a05a8a21856 /src/osd/HitSet.h | |
parent | Merge pull request #8767 from jjhuo/org_jianjian (diff) | |
download | ceph-1502c32f718fae7ffdd267310bf7e838fe3174ed.tar.xz ceph-1502c32f718fae7ffdd267310bf7e838fe3174ed.zip |
osd/HitSet: remove unneeded #include - Formatter
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
Diffstat (limited to 'src/osd/HitSet.h')
-rw-r--r-- | src/osd/HitSet.h | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/osd/HitSet.h b/src/osd/HitSet.h index 42292970f97..ecb613363a7 100644 --- a/src/osd/HitSet.h +++ b/src/osd/HitSet.h @@ -21,7 +21,6 @@ #include "include/unordered_set.h" #include "common/bloom_filter.hpp" #include "common/hobject.h" -#include "common/Formatter.h" /** * generic container for a HitSet @@ -234,13 +233,7 @@ public: ::decode(hits, bl); DECODE_FINISH(bl); } - void dump(Formatter *f) const { - f->dump_unsigned("insert_count", count); - f->open_array_section("hash_set"); - for (ceph::unordered_set<uint32_t>::const_iterator p = hits.begin(); p != hits.end(); ++p) - f->dump_unsigned("hash", *p); - f->close_section(); - } + void dump(Formatter *f) const; static void generate_test_instances(list<ExplicitHashHitSet*>& o) { o.push_back(new ExplicitHashHitSet); o.push_back(new ExplicitHashHitSet); @@ -311,16 +304,7 @@ public: ::decode(hits, bl); DECODE_FINISH(bl); } - void dump(Formatter *f) const { - f->dump_unsigned("insert_count", count); - f->open_array_section("set"); - for (ceph::unordered_set<hobject_t>::const_iterator p = hits.begin(); p != hits.end(); ++p) { - f->open_object_section("object"); - p->dump(f); - f->close_section(); - } - f->close_section(); - } + void dump(Formatter *f) const; static void generate_test_instances(list<ExplicitObjectHitSet*>& o) { o.push_back(new ExplicitObjectHitSet); o.push_back(new ExplicitObjectHitSet); @@ -386,11 +370,7 @@ public: ::decode(seed, bl); DECODE_FINISH(bl); } - void dump(Formatter *f) const { - f->dump_float("false_positive_probability", get_fpp()); - f->dump_int("target_size", target_size); - f->dump_int("seed", seed); - } + void dump(Formatter *f) const; void dump_stream(ostream& o) const { o << "false_positive_probability: " << get_fpp() << ", target_size: " << target_size @@ -459,11 +439,7 @@ public: ::decode(bloom, bl); DECODE_FINISH(bl); } - void dump(Formatter *f) const { - f->open_object_section("bloom_filter"); - bloom.dump(f); - f->close_section(); - } + void dump(Formatter *f) const; static void generate_test_instances(list<BloomHitSet*>& o) { o.push_back(new BloomHitSet); o.push_back(new BloomHitSet(10, .1, 1)); |