]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: ensure an actual transaction gets queued for recovery finish
authorSage Weil <sage@redhat.com>
Mon, 26 Feb 2018 19:45:28 +0000 (13:45 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:57 +0000 (08:26 -0500)
Otherwise, this context gets leaked and lost.

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

index 09696d10ad90725309edd087d81840c15c033473..a7e5a4a4939053cd534afe4023c4596debb3cdf9 100644 (file)
@@ -7774,6 +7774,7 @@ PG::RecoveryState::Clean::Clean(my_context ctx)
   }
   Context *c = pg->finish_recovery();
   context< RecoveryMachine >().get_cur_transaction()->register_on_commit(c);
+  context< RecoveryMachine >().get_cur_transaction()->nop();
 
   if (pg->is_active()) {
     pg->mark_clean();