]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGMap::dirty_all should be asserting about osd_epochs, not in.osd_epochs
authorSamuel Just <sam.just@inktank.com>
Thu, 24 Oct 2013 21:31:27 +0000 (14:31 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 24 Oct 2013 23:44:04 +0000 (16:44 -0700)
Fixes: #6627
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/PGMap.cc

index 39cb30f97c86d45441d72b2b11bf2b3fcddafbd0..ab4c885df4c0254245ff8f8e29a02f91c47c1b3f 100644 (file)
@@ -532,7 +532,7 @@ void PGMap::dirty_all(Incremental& inc)
     inc.pg_stat_updates[p->first] = p->second;
   }
   for (hash_map<int32_t, osd_stat_t>::const_iterator p = osd_stat.begin(); p != osd_stat.end(); ++p) {
-    assert(inc.get_osd_epochs().count(p->first));
+    assert(osd_epochs.count(p->first));
     inc.update_stat(p->first,
                   inc.get_osd_epochs().find(p->first)->second,
                   p->second);