From 55145330c43366fce60a5c8b494cd013ee538280 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 12 Jul 2022 16:52:44 +0000 Subject: [PATCH] crimson/osd: stop ShardServices when stopping OSD This patch fixes leaks of `ClientReqtest` instances observed previously on OSD's stop. Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/osd.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 3c06217ef3f9a..60f248363cbeb 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -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] { -- 2.39.5