From 8db7daf68d8e9721c0c6a8ade7afe20df219db24 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 18 Aug 2011 18:15:53 -0700 Subject: [PATCH] ReplicatedPG: Don't crash when a clone is missing Print an error rather than crashing when _scrub finds a missing clone. Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index ad91248c346a4..b5d29bb59ddb2 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4843,8 +4843,7 @@ int ReplicatedPG::_scrub(ScrubMap& scrubmap, int& errors, int& fixed) // did we finish the last oid? if (head != sobject_t()) { - dout(0) << " missing clone(s) for " << head << dendl; - assert(head == sobject_t()); // we had better be done + osd->clog.error() << "Missing clone(s) for " << head << "\n"; errors++; } -- 2.39.5