From: myoungwon oh Date: Sat, 31 Oct 2020 08:38:27 +0000 (+0900) Subject: osd: return 0 immediately if the object is evicted X-Git-Tag: v16.1.0~374^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05bdc02dbaac01147cfb900e1eeaa3ba8ac4bc94;p=ceph.git osd: return 0 immediately if the object is evicted Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 3d969585f65d..3c763db93c09 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -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.