@@ -74,7 +74,7 @@ class read_set_item_t {
7474 &read_set_item_t ::trans_hook>;
7575
7676public:
77- struct cmp_t {
77+ struct extent_cmp_t {
7878 using is_transparent = paddr_t ;
7979 bool operator ()(const read_set_item_t <T> &lhs, const read_set_item_t &rhs) const ;
8080 bool operator ()(const paddr_t &lhs, const read_set_item_t <T> &rhs) const ;
@@ -113,10 +113,14 @@ class read_set_item_t {
113113 read_set_item_t (read_set_item_t &&) = default ;
114114 ~read_set_item_t () = default ;
115115};
116+
116117template <typename T>
117- using read_set_t = std::set<
118+ using read_extent_set_t = std::set<
118119 read_set_item_t <T>,
119- typename read_set_item_t <T>::cmp_t >;
120+ typename read_set_item_t <T>::extent_cmp_t >;
121+
122+ template <typename T>
123+ using read_trans_set_t = typename read_set_item_t <T>::trans_set_t ;
120124
121125struct trans_spec_view_t {
122126 // if the extent is pending, contains the id of the owning transaction;
@@ -874,7 +878,7 @@ class CachedExtent
874878 CachedExtent* get_transactional_view (Transaction &t);
875879 CachedExtent* get_transactional_view (transaction_id_t tid);
876880
877- read_set_item_t <Transaction>:: trans_set_t transactions ;
881+ read_trans_set_t <Transaction> read_transactions ;
878882
879883 placement_hint_t user_hint = PLACEMENT_HINT_NULL;
880884
@@ -883,7 +887,7 @@ class CachedExtent
883887 rewrite_gen_t rewrite_generation = NULL_GENERATION;
884888
885889protected:
886- trans_view_set_t mutation_pendings ;
890+ trans_view_set_t mutation_pending_extents ;
887891 trans_view_set_t retired_transactions;
888892
889893 CachedExtent (CachedExtent &&other) = delete ;
@@ -1169,7 +1173,7 @@ template <typename T, typename C, typename Cmp>
11691173class addr_extent_set_base_t
11701174 : public std::set<C, Cmp> {};
11711175
1172- using pextent_set_t = addr_extent_set_base_t <
1176+ using retired_extent_set_t = addr_extent_set_base_t <
11731177 paddr_t ,
11741178 trans_retired_extent_link_t ,
11751179 ref_paddr_cmp
@@ -1468,17 +1472,17 @@ read_set_item_t<T>::read_set_item_t(T *t, CachedExtentRef ref)
14681472{}
14691473
14701474template <typename T>
1471- inline bool read_set_item_t <T>::cmp_t ::operator ()(
1475+ inline bool read_set_item_t <T>::extent_cmp_t ::operator ()(
14721476 const read_set_item_t <T> &lhs, const read_set_item_t <T> &rhs) const {
14731477 return lhs.ref ->poffset < rhs.ref ->poffset ;
14741478}
14751479template <typename T>
1476- inline bool read_set_item_t <T>::cmp_t ::operator ()(
1480+ inline bool read_set_item_t <T>::extent_cmp_t ::operator ()(
14771481 const paddr_t &lhs, const read_set_item_t <T> &rhs) const {
14781482 return lhs < rhs.ref ->poffset ;
14791483}
14801484template <typename T>
1481- inline bool read_set_item_t <T>::cmp_t ::operator ()(
1485+ inline bool read_set_item_t <T>::extent_cmp_t ::operator ()(
14821486 const read_set_item_t <T> &lhs, const paddr_t &rhs) const {
14831487 return lhs.ref ->poffset < rhs;
14841488}
0 commit comments