From 494d02c34990d2ef5ba873c11051048e9e8f504e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 26 Feb 2018 13:45:28 -0600 Subject: [PATCH] osd/PG: ensure an actual transaction gets queued for recovery finish Otherwise, this context gets leaked and lost. Signed-off-by: Sage Weil --- src/osd/PG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 09696d10ad907..a7e5a4a493905 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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(); -- 2.39.5