From: Radoslaw Zarzynski Date: Tue, 20 Dec 2022 15:33:51 +0000 (+0000) Subject: osd: slightly improve readability in handling of snap trim errors X-Git-Tag: v19.0.0~1578^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=994cf2055d6d3cecef6a9e649f78eb3a1946be9d;p=ceph.git osd: slightly improve readability in handling of snap trim errors I think that lowering to the indentation level for the affected `return` better shows it's eseentially "a catch all" exit. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 26dbac6d526e..29e61d8f8468 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -15698,9 +15698,8 @@ boost::statechart::result PrimaryLogPG::AwaitAsyncWork::react(const DoSnapWork&) ldout(pg->cct, 10) << "waiting for it to clear" << dendl; return transit< WaitRWLock >(); - } else { - return transit< NotTrimming >(); } + return transit< NotTrimming >(); } in_flight.insert(object);