]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PeeringState: fix get_backfill_priority min_size comparison
authorSamuel Just <sjust@redhat.com>
Fri, 2 Apr 2021 23:06:14 +0000 (23:06 +0000)
committerDan van der Ster <daniel.vanderster@cern.ch>
Tue, 1 Jun 2021 08:41:22 +0000 (10:41 +0200)
acting has placeholders for ec, need to use actingset.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 7b2e0f4fd1c9071495dae9189428aa1cb8774c30)

src/osd/PeeringState.cc

index d7495123475b1bd79f065b633856aa6d95233315..598679029b035134e7e1739a266949a9b2e808ba 100644 (file)
@@ -1008,10 +1008,10 @@ unsigned PeeringState::get_backfill_priority()
   if (state & PG_STATE_FORCED_BACKFILL) {
     ret = OSD_BACKFILL_PRIORITY_FORCED;
   } else {
-    if (acting.size() < pool.info.min_size) {
+    if (actingset.size() < pool.info.min_size) {
       base = OSD_BACKFILL_INACTIVE_PRIORITY_BASE;
       // inactive: no. of replicas < min_size, highest priority since it blocks IO
-      ret = base + (pool.info.min_size - acting.size());
+      ret = base + (pool.info.min_size - actingset.size());
 
     } else if (is_undersized()) {
       // undersized: OSD_BACKFILL_DEGRADED_PRIORITY_BASE + num missing replicas