]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add assert that we're replica
authorSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 18:36:34 +0000 (10:36 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 18:36:34 +0000 (10:36 -0800)
ar Fred saw a crash where we got into merge_log as a stray, which really
shouldn't ever happen!  See #590.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSD.cc

index 5b260dd93a6d4cac8aecbedda6a29e1c2c170f72..2d09a18815e9c9b370aa3aba830004bed6df7cb5 100644 (file)
@@ -3985,6 +3985,7 @@ void OSD::_process_pg_info(epoch_t epoch, int from,
       pg->activate(*t, fin->contexts, info_map);
     } else {
       // ACTIVE REPLICA
+      assert(pg->is_replica());
 
       // just update our stats
       dout(10) << *pg << " writing updated stats" << dendl;