From d37d9668913bfa1890c455acff61bd03fb7f5658 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 12 Jan 2018 13:26:16 -0600 Subject: [PATCH] osd/PrimaryLogPG: do on_shutdown on removal This cleans up our reservations and misc other state in OSDService that needs to be cleaned up. Signed-off-by: Sage Weil --- src/osd/PrimaryLogPG.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index fa2cae7666f90..18f9dc7cb529c 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -11507,9 +11507,7 @@ void PrimaryLogPG::on_removal(ObjectStore::Transaction *t) PGLogEntryHandler rollbacker{this, t}; pg_log.roll_forward(&rollbacker); - if (!deleting) { - on_shutdown(); - } + on_shutdown(); } void PrimaryLogPG::clear_async_reads() -- 2.39.5