]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "osd/HitSet: make subclasses dump deterministically"
authorSage Weil <sage@redhat.com>
Thu, 13 Aug 2015 18:37:32 +0000 (14:37 -0400)
committerSage Weil <sage@redhat.com>
Thu, 13 Aug 2015 18:37:32 +0000 (14:37 -0400)
This reverts commit 34c048b3cb2b16658e692ac5110115612031510d.

src/osd/HitSet.h

index 51a396a32611a14ffdadf97682fdebb1bec5e343..2b981a3eaacf4af96549c087d7a4cfecd2630b30 100644 (file)
@@ -237,10 +237,7 @@ public:
   void dump(Formatter *f) const {
     f->dump_unsigned("insert_count", count);
     f->open_array_section("hash_set");
-    // dump deterministically
-    std::set<uint32_t> tmp;
-    tmp.insert(hits.begin(), hits.end());
-    for (std::set<uint32_t>::iterator p = tmp.begin(); p != tmp.end(); ++p)
+    for (ceph::unordered_set<uint32_t>::const_iterator p = hits.begin(); p != hits.end(); ++p)
       f->dump_unsigned("hash", *p);
     f->close_section();
   }
@@ -317,10 +314,7 @@ public:
   void dump(Formatter *f) const {
     f->dump_unsigned("insert_count", count);
     f->open_array_section("set");
-    // dump deterministically
-    std::set<hobject_t> tmp;
-    tmp.insert(hits.begin(), hits.end());
-    for (std::set<hobject_t>::iterator p = tmp.begin(); p != tmp.end(); ++p) {
+    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();