From 7f4d4e8fd1eae2598de636a0c46294190ee6b172 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 14 Mar 2017 21:02:44 +0800 Subject: [PATCH] osd/PG: remove dup is_primary() check Signed-off-by: xie xingguo --- src/osd/PG.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e77fb070a4f..44ef72f0210 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1862,8 +1862,6 @@ void PG::activate(ObjectStore::Transaction& t, state_set(PG_STATE_ACTIVATING); release_pg_backoffs(); - } - if (is_primary()) { projected_last_update = info.last_update; } if (acting.size() >= pool.info.min_size) {