From bb5d201906bb62bfeaa17ffe33e9a1c6bb391479 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Wed, 2 Dec 2020 12:11:07 +0900 Subject: [PATCH] osd: return proper error Signed-off-by: Myoungwon Oh --- src/osd/PrimaryLogPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.47.3