]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: use use IsFullKey in node_fields_2_t::insert_at()
authorKefu Chai <tchaikov@gmail.com>
Sat, 20 Aug 2022 10:20:37 +0000 (18:20 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 20 Aug 2022 11:55:42 +0000 (19:55 +0800)
to fade out KeyT, so we can have more straightforward definitions.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage_layout.h

index 101485c82d18bc618d96aa1527aee3800ba7c93a..1ed4865a629df64b678eaddf043e9e9bae76b6e5 100644 (file)
@@ -278,9 +278,9 @@ struct node_fields_2_t {
   }
 
   static node_offset_t estimate_insert_one() { return sizeof(node_offset_t); }
-  template <KeyT KT>
+  template <IsFullKey Key>
   static void insert_at(
-      NodeExtentMutable& mut, const full_key_t<KT>& key,
+      NodeExtentMutable& mut, const Key& key,
       const node_fields_2_t& node, index_t index, node_offset_t size_right) {
     ceph_abort("not implemented");
   }
@@ -374,9 +374,9 @@ struct internal_fields_3_t {
 
   static node_offset_t estimate_insert_one() { return ITEM_SIZE; }
 
-  template <KeyT KT>
+  template <IsFullKey Key>
   static void insert_at(
-      NodeExtentMutable& mut, const full_key_t<KT>& key,
+      NodeExtentMutable& mut, const Key& key,
       const internal_fields_3_t& node,
       index_t index, node_offset_t size_right) {
     ceph_abort("not implemented");