]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PrimaryLogPG: drop unused parameters
authorLiao Weizhong <liaoweizhong@unionpay.com>
Fri, 27 Oct 2017 07:35:16 +0000 (15:35 +0800)
committerLiao Weizhong <liaoweizhong@unionpay.com>
Tue, 31 Oct 2017 05:13:37 +0000 (13:13 +0800)
Signed-off-by: Liao Weizhong <liaoweizhong@unionpay.com>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h

index 8b9beedba7b639a9b41bcd89b5eb37cb231f3340..dd1c8f54e827465f672d3b5e0dd003171a9efc1e 100644 (file)
@@ -7023,8 +7023,8 @@ void PrimaryLogPG::_make_clone(
   ::encode(*poi, bv, get_osdmap()->get_features(CEPH_ENTITY_TYPE_OSD, nullptr));
 
   t->clone(coid, head);
-  setattr_maybe_cache(obc, ctx, t, OI_ATTR, bv);
-  rmattr_maybe_cache(obc, ctx, t, SS_ATTR);
+  setattr_maybe_cache(obc, t, OI_ATTR, bv);
+  rmattr_maybe_cache(obc, t, SS_ATTR);
 }
 
 void PrimaryLogPG::make_writeable(OpContext *ctx)
@@ -12536,7 +12536,7 @@ void PrimaryLogPG::hit_set_persist()
   map <string, bufferlist> attrs;
   attrs[OI_ATTR].claim(boi);
   attrs[SS_ATTR].claim(bss);
-  setattrs_maybe_cache(ctx->obc, ctx.get(), ctx->op_t.get(), attrs);
+  setattrs_maybe_cache(ctx->obc, ctx->op_t.get(), attrs);
   ctx->log.push_back(
     pg_log_entry_t(
       pg_log_entry_t::MODIFY,
@@ -14125,7 +14125,6 @@ boost::statechart::result PrimaryLogPG::AwaitAsyncWork::react(const DoSnapWork&)
 
 void PrimaryLogPG::setattr_maybe_cache(
   ObjectContextRef obc,
-  OpContext *op,
   PGTransaction *t,
   const string &key,
   bufferlist &val)
@@ -14135,7 +14134,6 @@ void PrimaryLogPG::setattr_maybe_cache(
 
 void PrimaryLogPG::setattrs_maybe_cache(
   ObjectContextRef obc,
-  OpContext *op,
   PGTransaction *t,
   map<string, bufferlist> &attrs)
 {
@@ -14144,7 +14142,6 @@ void PrimaryLogPG::setattrs_maybe_cache(
 
 void PrimaryLogPG::rmattr_maybe_cache(
   ObjectContextRef obc,
-  OpContext *op,
   PGTransaction *t,
   const string &key)
 {
index fb9541787150d8ab75b3f59649c90b146f1f1169..35ca19570cd62394cbe99ee9e152dab8537c48c5 100644 (file)
@@ -1796,18 +1796,15 @@ public:
   // attr cache handling
   void setattr_maybe_cache(
     ObjectContextRef obc,
-    OpContext *op,
     PGTransaction *t,
     const string &key,
     bufferlist &val);
   void setattrs_maybe_cache(
     ObjectContextRef obc,
-    OpContext *op,
     PGTransaction *t,
     map<string, bufferlist> &attrs);
   void rmattr_maybe_cache(
     ObjectContextRef obc,
-    OpContext *op,
     PGTransaction *t,
     const string &key);
   int getattr_maybe_cache(