]> git.apps.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)
committerSamuel Just <sjust@redhat.com>
Fri, 2 Apr 2021 23:09:40 +0000 (23:09 +0000)
acting has placeholders for ec, need to use actingset.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PeeringState.cc

index 4d3428976dfc877c0bb4c995649c3469ad5eb006..20bbc6793c429ab10066fde70da18ad3fa68b58b 100644 (file)
@@ -1024,10 +1024,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