]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: return EINVAL instead of 0 if fingerprint is not set
authormyoungwon oh <ohmyoungwon@gmail.com>
Sat, 7 Nov 2020 00:55:13 +0000 (09:55 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Sat, 7 Nov 2020 00:55:13 +0000 (09:55 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
src/osd/PrimaryLogPG.cc

index af6a5a8dfe76cced11bdd4aa12bc7dab8c3d4243..50af9f3c79aec0576f81a0e57f8ca3055af1dba3 100644 (file)
@@ -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;
   } 
 
   /*