From ed72f30db7646d54854cfadb58905d4af79b613c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 9 Feb 2018 16:04:30 -0600 Subject: [PATCH] osd: register split completion directly on Transaction No need to use wonky RecoveryCtx C_Contexts Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index ecfcd85facd..98f7e35e019 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7753,7 +7753,7 @@ void OSD::advance_pg( service.pg_update_epoch(pg->pg_id, lastmap->get_epoch()); if (!new_pgs.empty()) { - rctx->on_applied->add(new C_FinishSplits(this, new_pgs)); + rctx->transaction->register_on_applied(new C_FinishSplits(this, new_pgs)); } } -- 2.39.5