]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: rename ns_oid_view_t::test_append()
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 2 Nov 2020 05:35:11 +0000 (13:35 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 1 Dec 2020 04:50:54 +0000 (12:50 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/stages/key_layout.h
src/test/crimson/seastore/onode_tree/test_staged_fltree.cc

index 77dec492438670aba6dd82bb470e56f9a395ada6..9436894f9253c5843888fc77b9c3b9fe1cc5f3ae 100644 (file)
@@ -191,7 +191,7 @@ struct string_key_view_t {
   static void append_str(
       NodeExtentMutable&, std::string_view, char*& p_append);
 
-  static void append_str(std::string_view str, char*& p_append) {
+  static void test_append_str(std::string_view str, char*& p_append) {
     p_append -= sizeof(string_size_t);
     assert(str.length() < std::numeric_limits<string_size_t>::max());
     string_size_t len = str.length();
@@ -204,7 +204,7 @@ struct string_key_view_t {
   static void append_dedup(
       NodeExtentMutable&, const Type& dedup_type, char*& p_append);
 
-  static void append_dedup(const Type& dedup_type, char*& p_append) {
+  static void test_append_dedup(const Type& dedup_type, char*& p_append) {
     p_append -= sizeof(string_size_t);
     string_size_t len;
     if (dedup_type == Type::MIN) {
@@ -364,7 +364,7 @@ struct ns_oid_view_t {
   }
 
   template <KeyT KT>
-  static void append(const full_key_t<KT>& key, char*& p_append);
+  static void test_append(const full_key_t<KT>& key, char*& p_append);
 
   string_key_view_t nspace;
   string_key_view_t oid;
@@ -718,12 +718,12 @@ void ns_oid_view_t::append(
 }
 
 template <KeyT KT>
-void ns_oid_view_t::append(const full_key_t<KT>& key, char*& p_append) {
+void ns_oid_view_t::test_append(const full_key_t<KT>& key, char*& p_append) {
   if (key.dedup_type() == Type::STR) {
-    string_key_view_t::append_str(key.nspace(), p_append);
-    string_key_view_t::append_str(key.oid(), p_append);
+    string_key_view_t::test_append_str(key.nspace(), p_append);
+    string_key_view_t::test_append_str(key.oid(), p_append);
   } else {
-    string_key_view_t::append_dedup(key.dedup_type(), p_append);
+    string_key_view_t::test_append_dedup(key.dedup_type(), p_append);
   }
 }
 
index 45d60dc569c65800626a91365159fa1004031acf..03793adf4f5f0372c416710434f5c341e2a74080 100644 (file)
@@ -44,7 +44,7 @@ namespace {
     key_view.set(*reinterpret_cast<const shard_pool_crush_t*>(p_fill));
 
     auto p_ns_oid = p_fill;
-    ns_oid_view_t::append<KeyT::HOBJ>(key_hobj, p_fill);
+    ns_oid_view_t::test_append<KeyT::HOBJ>(key_hobj, p_fill);
     ns_oid_view_t ns_oid_view(p_ns_oid);
     key_view.set(ns_oid_view);