]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: remove bad assert
authorSage Weil <sage@inktank.com>
Tue, 11 Feb 2014 23:40:22 +0000 (15:40 -0800)
committerSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 18:50:09 +0000 (10:50 -0800)
You can have an erasure poool with all CRUSH_ITEM_NONE and primary == -1.
acting is not empty.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSDMap.h

index a405526c6961ff41b454854b7e0b544e57f50e39..a9eed12c19fa3bd4e1e9e5d9cd5bef014823d9c6 100644 (file)
@@ -598,7 +598,6 @@ public:
   int pg_to_acting_osds(pg_t pg, vector<int>& acting) const {
     int primary;
     int r = pg_to_acting_osds(pg, &acting, &primary);
-    assert(acting.empty() || primary == acting.front());
     return r;
   }
   /**