From: myoungwon oh Date: Sat, 31 Oct 2020 06:56:45 +0000 (+0900) Subject: osd: remove unnecessary argument in finish_set_dedup X-Git-Tag: v16.1.0~374^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=adbde204a7f44932c13caa1de1406befa95a1fb4;p=ceph.git osd: remove unnecessary argument in finish_set_dedup Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index dffb3948527b..bf03127293a6 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10017,7 +10017,7 @@ struct C_SetDedupChunks : public Context { // there are on-going works return; } - pg->finish_set_dedup(oid, it->second->chunks, r, tid); + pg->finish_set_dedup(oid, r, tid); } else { // if any failure occurs, put a mark on the results to recognize the failure it->second->results[0] = r; @@ -10171,8 +10171,7 @@ hobject_t PrimaryLogPG::get_fpoid_from_chunk(const hobject_t soid, bufferlist& c return target; } -void PrimaryLogPG::finish_set_dedup(hobject_t oid, map>& chunks, - int r, ceph_tid_t tid) +void PrimaryLogPG::finish_set_dedup(hobject_t oid, int r, ceph_tid_t tid) { dout(10) << __func__ << " " << oid << " tid " << tid << " " << cpp_strerror(r) << dendl; @@ -10196,7 +10195,7 @@ void PrimaryLogPG::finish_set_dedup(hobject_t oid, mapchunks.size()) { OpContextUPtr ctx = simple_opc_create(obc); ceph_assert(ctx); if (ctx->lock_manager.get_lock_type( @@ -10227,7 +10226,7 @@ void PrimaryLogPG::finish_set_dedup(hobject_t oid, mapat_version = get_next_version(); ctx->new_obs = obc->obs; ctx->new_obs.oi.clear_flag(object_info_t::FLAG_DIRTY); - for (auto p : chunks) { + for (auto p : mop->chunks) { struct chunk_info_t info; info.offset = 0; info.length = p.second.second; diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 7decb5704d32..9c8899a89b5a 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -1512,8 +1512,7 @@ protected: int do_cdc(const object_info_t& oi, bufferlist& bl, vector>& chunks); int start_dedup(OpRequestRef op, ObjectContextRef obc); hobject_t get_fpoid_from_chunk(const hobject_t soid, bufferlist& chunk); - void finish_set_dedup(hobject_t oid, map>& chunks, - int r, ceph_tid_t tid); + void finish_set_dedup(hobject_t oid, int r, ceph_tid_t tid); friend struct C_ProxyChunkRead; friend class PromoteManifestCallback;