]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore: do not start identifier with "__"
authorKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:14:30 +0000 (21:14 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 May 2021 13:40:46 +0000 (21:40 +0800)
avoid starting identifiers with two underscores, these names are
reserved for C/C++ compiler and standard library.

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

index ee0b791658719eaacc35224bb968367099c0562d..2adf9efefaa52337899bd92fa8889f268fc6f39f 100644 (file)
@@ -764,7 +764,7 @@ SeaStore::tm_ret SeaStore::_write(
 }
 
 SeaStore::omap_set_kvs_ret
-SeaStore::__omap_set_kvs(
+SeaStore::_omap_set_kvs(
   const omap_root_le_t& omap_root,
   Transaction& t,
   omap_root_le_t& mutable_omap_root,
@@ -802,7 +802,7 @@ SeaStore::tm_ret SeaStore::_omap_set_values(
 {
   LOG_PREFIX(SeaStore::_omap_set_values);
   DEBUGT("{} {} keys", *ctx.transaction, *onode, aset.size());
-  return __omap_set_kvs(
+  return _omap_set_kvs(
     onode->get_layout().omap_root,
     *ctx.transaction,
     onode->get_mutable_layout(*ctx.transaction).omap_root,
@@ -928,7 +928,7 @@ SeaStore::tm_ret SeaStore::_setattrs(
     return tm_ertr::now();
   }
 
-  return __omap_set_kvs(
+  return _omap_set_kvs(
     onode->get_layout().xattr_root,
     *ctx.transaction,
     layout.xattr_root,
index 8b28b715c829f71024cb8bc55e9f51cb33e73ceb..c7698efbf3d5bbb691ee7fab9b6840de1c3aec4d 100644 (file)
@@ -298,7 +298,7 @@ private:
     internal_context_t &ctx,
     const coll_t& cid);
   using omap_set_kvs_ret = tm_ertr::future<>;
-  omap_set_kvs_ret __omap_set_kvs(
+  omap_set_kvs_ret _omap_set_kvs(
     const omap_root_le_t& omap_root,
     Transaction& t,
     omap_root_le_t& mutable_omap_root,