From b190875548347a45399ec2693a59b620d498a353 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 17 Dec 2010 10:36:34 -0800 Subject: [PATCH] osd: add assert that we're replica 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 --- src/osd/OSD.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 5b260dd93a6d4..2d09a18815e9c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -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; -- 2.39.5