]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PeeringState: proc_lease_ack break once found from OSD
author胡玮文 <huww98@outlook.com>
Fri, 7 Jan 2022 17:10:35 +0000 (01:10 +0800)
committer胡玮文 <huww98@outlook.com>
Thu, 24 Feb 2022 09:22:07 +0000 (17:22 +0800)
We should not have duplicated OSD ID in `acting`. So the loop would
execute once anyway.

Signed-off-by: 胡玮文 <huww98@outlook.com>
src/osd/PeeringState.cc

index dd73537799e823c75eede4da9e3bcff8713372eb..cd092da62fd24f8387efbef8693eeabc5b5cd942 100644 (file)
@@ -1213,8 +1213,8 @@ void PeeringState::proc_lease_ack(int from, const pg_lease_ack_t& a)
          was_min = true;
        }
        acting_readable_until_ub[i] = a.readable_until_ub;
-       break;
       }
+      break;
     }
   }
   if (was_min) {