]> 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)
committerAishwarya Mathuria <amathuri@redhat.com>
Thu, 1 Sep 2022 13:39:05 +0000 (19:09 +0530)
We should not have duplicated OSD ID in `acting`. So the loop would
execute once anyway.

Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit 9337fa6704180de90e1c18e314849566ff628818)

src/osd/PeeringState.cc

index 68b8d22259955dfb82455429b25b3ed8abd8fbc3..f925d39a28f2ab7ae2e8ac8d00c8a842e9157fb1 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) {