]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: stop ShardServices when stopping OSD
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 12 Jul 2022 16:52:44 +0000 (16:52 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 12 Jul 2022 16:58:28 +0000 (16:58 +0000)
This patch fixes leaks of `ClientReqtest` instances observed
previously on OSD's stop.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/osd.cc

index 3c06217ef3f9ae952c420175c0ffd57582926ac3..60f248363cbeb63f1f102c6bb00d7ef2ad5cae41 100644 (file)
@@ -572,6 +572,8 @@ seastar::future<> OSD::stop()
     auto gate_close_fut = gate.close();
     return asok->stop().then([this] {
       return heartbeat->stop();
+    }).then([this] {
+      return shard_services.stop();
     }).then([this] {
       return store.umount();
     }).then([this] {