Skip to content

Commit

Permalink
Merge pull request #17391 from myoungwon/wip-proxywrite-cleanup
Browse files Browse the repository at this point in the history
osd: remove unused variable in do_proxy_write

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
liewegas committed Sep 1, 2017
2 parents c66f68d + 5e582bc commit 30a99d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/osd/PrimaryLogPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ PrimaryLogPG::cache_result_t PrimaryLogPG::maybe_handle_manifest_detail(
switch (obc->obs.oi.manifest.type) {
case object_manifest_t::TYPE_REDIRECT:
if (op->may_write() || write_ordered) {
do_proxy_write(op, obc->obs.oi.soid, obc);
do_proxy_write(op, obc);
} else {
do_proxy_read(op, obc);
}
Expand Down Expand Up @@ -2518,7 +2518,7 @@ PrimaryLogPG::cache_result_t PrimaryLogPG::maybe_handle_cache_detail(

if (op->may_write() || op->may_cache()) {
if (can_proxy_write) {
do_proxy_write(op, missing_oid);
do_proxy_write(op);
} else {
// promote if can't proxy the write
promote_object(obc, missing_oid, oloc, op, promote_obc);
Expand Down Expand Up @@ -2596,7 +2596,7 @@ PrimaryLogPG::cache_result_t PrimaryLogPG::maybe_handle_cache_detail(
if (!must_promote) {
if (op->may_write() || op->may_cache() || write_ordered) {
if (can_proxy_write) {
do_proxy_write(op, missing_oid);
do_proxy_write(op);
return cache_result_t::HANDLED_PROXY;
}
} else {
Expand Down Expand Up @@ -2946,7 +2946,7 @@ struct C_ProxyWrite_Commit : public Context {
}
};

void PrimaryLogPG::do_proxy_write(OpRequestRef op, const hobject_t& missing_oid, ObjectContextRef obc)
void PrimaryLogPG::do_proxy_write(OpRequestRef op, ObjectContextRef obc)
{
// NOTE: non-const because ProxyWriteOp takes a mutable ref
MOSDOp *m = static_cast<MOSDOp*>(op->get_nonconst_req());
Expand Down
2 changes: 1 addition & 1 deletion src/osd/PrimaryLogPG.h
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@ class PrimaryLogPG : public PG, public PGBackend::Listener {
// -- proxywrite --
map<ceph_tid_t, ProxyWriteOpRef> proxywrite_ops;

void do_proxy_write(OpRequestRef op, const hobject_t& missing_oid, ObjectContextRef obc = NULL);
void do_proxy_write(OpRequestRef op, ObjectContextRef obc = NULL);
void finish_proxy_write(hobject_t oid, ceph_tid_t tid, int r);
void cancel_proxy_write(ProxyWriteOpRef pwop);

Expand Down

0 comments on commit 30a99d4

Please sign in to comment.