]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PG: s/!is_erasure()/is_replicated()/
authorKefu Chai <kchai@redhat.com>
Sat, 2 Mar 2019 15:27:58 +0000 (23:27 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 16 Mar 2019 06:22:59 +0000 (14:22 +0800)
trade "!" for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PG.cc

index 3787d1486b50665fe317e4628ae136e75387de76..16915807e27457ea081e947b2c5807e834b2621f 100644 (file)
@@ -1719,7 +1719,7 @@ bool PG::choose_acting(pg_shard_t &auth_log_shard_id,
   set<pg_shard_t> want_backfill, want_acting_backfill;
   vector<int> want;
   stringstream ss;
-  if (!pool.info.is_erasure())
+  if (pool.info.is_replicated())
     calc_replicated_acting(
       auth_log_shard,
       cct->_conf.get_val<uint64_t>(