]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: return 0 immediately if the object is evicted
authormyoungwon oh <ohmyoungwon@gmail.com>
Sat, 31 Oct 2020 08:38:27 +0000 (17:38 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sat, 31 Oct 2020 08:38:27 +0000 (17:38 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
src/osd/PrimaryLogPG.cc

index 3d969585f65d261dcbbbdbc92d23df890e611612..3c763db93c09b0166e8e77ebcd31196c4e63d83b 100644 (file)
@@ -10013,6 +10013,10 @@ int PrimaryLogPG::start_dedup(OpRequestRef op, ObjectContextRef obc)
   const hobject_t& soid = oi.soid;
 
   ceph_assert(obc->is_blocked());
+  if (oi.size == 0) {
+    // evicted 
+    return 0;
+  }
 
   /*
    * The operations to make dedup chunks are tracked by a ManifestOp.