]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: read_set_t<> should be an alias of set<>
authorKefu Chai <kchai@redhat.com>
Fri, 2 Jul 2021 03:32:15 +0000 (11:32 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 2 Jul 2021 03:37:07 +0000 (11:37 +0800)
we don't extend it by inheriting from this class. what we need is to
have a convenient template alias here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/cached_extent.h

index a5dde1a869e8355f7b58e2628c5d2639fc2c671e..c14ec2a1b3bf436b122b1f7fcd3c00b3632b7520 100644 (file)
@@ -69,9 +69,9 @@ public:
   ~read_set_item_t();
 };
 template <typename T>
-struct read_set_t : public std::set<
+using read_set_t = std::set<
   read_set_item_t<T>,
-  typename read_set_item_t<T>::cmp_t> {};
+  typename read_set_item_t<T>::cmp_t>;
 
 class ExtentIndex;
 class CachedExtent : public boost::intrusive_ref_counter<