From: myoungwon oh Date: Sat, 7 Nov 2020 00:55:13 +0000 (+0900) Subject: osd: return EINVAL instead of 0 if fingerprint is not set X-Git-Tag: v16.1.0~374^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e79acb27f943d37bf6a09d2a6ec3e0fb640ffcc5;p=ceph.git osd: return EINVAL instead of 0 if fingerprint is not set Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index af6a5a8dfe76..50af9f3c79ae 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10019,7 +10019,7 @@ int PrimaryLogPG::start_dedup(OpRequestRef op, ObjectContextRef obc) } if (pool.info.get_fingerprint_type() == pg_pool_t::TYPE_FINGERPRINT_NONE) { dout(0) << " fingerprint algorithm is not set " << dendl; - return 0; + return -EINVAL; } /*