From: Kefu Chai Date: Tue, 6 Oct 2020 11:03:38 +0000 (+0800) Subject: crimson/os: mark dtor of interface class "virtual" X-Git-Tag: v17.0.0~940^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6336f72244d26c4d92c62770eb8d54c5ccc6d337;p=ceph.git crimson/os: mark dtor of interface class "virtual" we use a smart_ptr in Seastore to manage the life cycle of `TransactionManager` which is in turn a subclass `ExtentCallbackInterface`, so should declare the dtor of latter as virtual. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/os/seastore/segment_cleaner.h b/src/crimson/os/seastore/segment_cleaner.h index c4943a1590f7e..43a2897ca0505 100644 --- a/src/crimson/os/seastore/segment_cleaner.h +++ b/src/crimson/os/seastore/segment_cleaner.h @@ -37,6 +37,7 @@ public: /// Callback interface for querying and operating on segments class ExtentCallbackInterface { public: + virtual ~ExtentCallbackInterface() = default; /** * get_next_dirty_extent *