From e79acb27f943d37bf6a09d2a6ec3e0fb640ffcc5 Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Sat, 7 Nov 2020 09:55:13 +0900 Subject: [PATCH] osd: return EINVAL instead of 0 if fingerprint is not set 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 af6a5a8dfe7..50af9f3c79a 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; } /* -- 2.47.3