]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: return zero if there is no entry to dedup
authormyoungwon oh <ohmyoungwon@gmail.com>
Sat, 31 Oct 2020 08:01:50 +0000 (17:01 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sat, 31 Oct 2020 08:01:50 +0000 (17:01 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
src/osd/PrimaryLogPG.cc

index 18fc19f73b6bf9fb8851fc303e3503ae8a0336d4..27f71605ca24cb0e5ce6801667b04168723f2db1 100644 (file)
@@ -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;
 }