From a4cbeb48ef4befca5d1765f253c5f4510ec0a12a Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Sat, 31 Oct 2020 17:01:50 +0900 Subject: [PATCH] osd: return zero if there is no entry to dedup Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5