From 34cb1f0cce359ebfc271c73552bfbddec85ce8de Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Mon, 20 Apr 2015 23:03:06 +0800 Subject: [PATCH] PG: remove the duplicated code. assert(!actingbackfill.empty()) is equal to assert(actingbackfill.end() != actingbackfill.begin()). Signed-off-by: Jianpeng Ma --- src/osd/PG.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 058348193ec16..25f7c722e0e1d 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; -- 2.39.5