]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: register split completion directly on Transaction
authorSage Weil <sage@redhat.com>
Fri, 9 Feb 2018 22:04:30 +0000 (16:04 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:54 +0000 (08:26 -0500)
No need to use wonky RecoveryCtx C_Contexts

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

index ecfcd85facd0103d3b57b798d17df49210a7e269..98f7e35e019314c3b99c67256e1990df5998865e 100644 (file)
@@ -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));
   }
 }