]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "osd/PG: avoid choose_acting picking want with > pool size items"
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Nov 2019 00:30:27 +0000 (08:30 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Nov 2019 00:30:27 +0000 (08:30 +0800)
This reverts commit c3e2990c39952a1fc4593076c5b2f0dea6cdcdd3.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PeeringState.cc

index 04e3a87debd426b134013edf93f2c1590f2a6000..17030737506d7c06c64feef962912d166dc450ed 100644 (file)
@@ -1703,9 +1703,6 @@ void PeeringState::calc_replicated_acting(
       acting_backfill->insert(up_cand);
       ss << " osd." << i << " (up) accepted " << cur_info << std::endl;
     }
-    if (want->size() >= size) {
-      break;
-    }
   }
 
   if (want->size() >= size) {