From: myoungwon oh Date: Sat, 31 Oct 2020 08:01:50 +0000 (+0900) Subject: osd: return zero if there is no entry to dedup X-Git-Tag: v17.0.0~406^2~27 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a4cbeb48ef4befca5d1765f253c5f4510ec0a12a;p=ceph.git osd: return zero if there is no entry to dedup Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 18fc19f73b6bf..27f71605ca24c 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10079,6 +10079,9 @@ int PrimaryLogPG::start_dedup(OpRequestRef op, ObjectContextRef obc) manifest_ops[soid]->op = op; } + if (mop->tids.size() == 0) { + return 0; + } return -EINPROGRESS; }