]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PrimaryLogPG: do on_shutdown on removal 19433/head
authorSage Weil <sage@redhat.com>
Fri, 12 Jan 2018 19:26:16 +0000 (13:26 -0600)
committerSage Weil <sage@redhat.com>
Tue, 16 Jan 2018 20:31:28 +0000 (14:31 -0600)
This cleans up our reservations and misc other state in OSDService that
needs to be cleaned up.

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

index fa2cae7666f901e33cb4010768da1f2e688512b9..18f9dc7cb529c7906f70a7c59d119e02350e1333 100644 (file)
@@ -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()