From: myoungwon oh Date: Wed, 18 Nov 2020 06:40:51 +0000 (+0900) Subject: osd: combine two ifs X-Git-Tag: v16.1.0~374^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=226e50ff0f421f48647d70c98d68c05ff5b5439d;p=ceph.git osd: combine two ifs Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index a15af53c47c9..a5841b29c6ad 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -10093,11 +10093,11 @@ int PrimaryLogPG::start_dedup(OpRequestRef op, ObjectContextRef obc) if (mop->tids.size()) { manifest_ops[soid] = mop; manifest_ops[soid]->op = op; - } - - if (mop->tids.size() == 0) { + } else { + // size == 0 return 0; } + return -EINPROGRESS; }