From: myoungwon oh Date: Wed, 2 Dec 2020 03:11:07 +0000 (+0900) Subject: osd: return proper error X-Git-Tag: v16.1.0~374^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb5d201906bb62bfeaa17ffe33e9a1c6bb391479;p=ceph.git osd: return proper error Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 7d54a627ec9..257b51215b0 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10127,7 +10127,7 @@ int PrimaryLogPG::do_cdc(const object_info_t& oi, if (bl.length() != oi.size) { dout(0) << __func__ << " bl.length: " << bl.length() << " != oi.size: " << oi.size << " during chunking " << dendl; - return -ENODATA; + return -EIO; } dout(10) << __func__ << " oid: " << oi.soid << " len: " << bl.length()