]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: slightly improve readability in handling of snap trim errors 49524/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 20 Dec 2022 15:33:51 +0000 (15:33 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 20 Dec 2022 15:38:04 +0000 (15:38 +0000)
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 <rzarzyns@redhat.com>
src/osd/PrimaryLogPG.cc

index 26dbac6d526e147163d38de0b6166f7ab4769654..29e61d8f84681ff92c4abd597852b25c09881af6 100644 (file)
@@ -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);