From 5ce35474f332f3fe915f997bc9a6ffddbbfdda77 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 2 Mar 2019 23:27:58 +0800 Subject: [PATCH] osd/PG: s/!is_erasure()/is_replicated()/ trade "!" for better readability. Signed-off-by: Kefu Chai --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 3787d1486b506..16915807e2745 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1719,7 +1719,7 @@ bool PG::choose_acting(pg_shard_t &auth_log_shard_id, set want_backfill, want_acting_backfill; vector want; stringstream ss; - if (!pool.info.is_erasure()) + if (pool.info.is_replicated()) calc_replicated_acting( auth_log_shard, cct->_conf.get_val( -- 2.39.5