From 751de6ed2ee4771606de27c32de9c2a6772bdad2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Apr 2017 12:14:29 -0400 Subject: [PATCH] osd/PrimaryLogPG: allow creation of obc for new head object We may be creating the head object to migrate the SnapSet to. Signed-off-by: Sage Weil --- src/osd/PrimaryLogPG.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index ccbc8ba63e0..df25ddf8b0d 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -13488,13 +13488,14 @@ void PrimaryLogPG::scrub_snapshot_metadata( // this happens if we encounter other errors above, like a missing // or extra clone. dout(10) << __func__ << " not writing snapset to " << p.first - << " " << p.second << "; didn't convert fully" << dendl; + << " snapset " << p.second << " clones " << p.second.clones + << "; didn't convert fully" << dendl; scrub_cstat.sum.num_legacy_snapsets++; continue; } dout(10) << __func__ << " writing snapset to " << p.first << " " << p.second << dendl; - ObjectContextRef obc = get_object_context(p.first, false); + ObjectContextRef obc = get_object_context(p.first, true); if (!obc) { osd->clog->error() << info.pgid << " " << mode << " cannot get object context for " -- 2.39.5