From: Jianpeng Ma Date: Mon, 20 Apr 2015 15:03:06 +0000 (+0800) Subject: PG: remove the duplicated code. X-Git-Tag: v9.0.1~89^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=34cb1f0cce359ebfc271c73552bfbddec85ce8de;p=ceph.git PG: remove the duplicated code. assert(!actingbackfill.empty()) is equal to assert(actingbackfill.end() != actingbackfill.begin()). Signed-off-by: Jianpeng Ma --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 058348193ec1..25f7c722e0e1 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -586,7 +586,6 @@ bool PG::needs_recovery() const assert(!actingbackfill.empty()); set::const_iterator end = actingbackfill.end(); set::const_iterator a = actingbackfill.begin(); - assert(a != end); for (; a != end; ++a) { if (*a == get_primary()) continue; pg_shard_t peer = *a;