From 5badc4bd47093e8fbf32569688aee51029e14e5b Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Fri, 26 Jul 2019 19:40:31 +0900 Subject: [PATCH] osd: fix wrong arguments when dropping refcount Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 9f5491616c2..c29e756abe0 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -2486,8 +2486,9 @@ int PrimaryLogPG::do_manifest_flush(OpRequestRef op, ObjectContextRef obc, Flush // decrement old chunk's reference count ObjectOperation dec_op; cls_chunk_refcount_put_op put_call; + put_call.source = soid; ::encode(put_call, in); - dec_op.call("refcount", "chunk_put", in); + dec_op.call("cas", "chunk_put", in); // we don't care dec_op's completion. scrub for dedup will fix this. tid = osd->objecter->mutate( tgt_soid.oid, oloc, dec_op, snapc, -- 2.39.5