]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/Connection: move destructor to object file
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 19 Aug 2025 21:28:41 +0000 (17:28 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 26 Jan 2026 15:27:41 +0000 (10:27 -0500)
To ensure vtable is embedded in Connection object file.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/msg/Connection.cc
src/msg/Connection.h

index f3d14e7572e1fbf4d92af48c9897a1898bec4f03..25448d2d30c21b335f3d90568b214500f71ba006 100644 (file)
@@ -4,6 +4,7 @@
 #include "msg/Connection.h"
 #include "msg/Messenger.h"
 
+Connection::~Connection() = default;
 
 bool Connection::is_blackhole() const {
   auto& conf = msgr->cct->_conf;
index ccdfb4d274709ea8a2ad10859f7c78dcea76f859..b8fcaeebfca04116026a1c4822110528d2fcdb9f 100644 (file)
@@ -253,9 +253,7 @@ protected:
       msgr(m)
   {}
 
-  ~Connection() override {
-    //generic_dout(0) << "~Connection " << this << dendl;
-  }
+  ~Connection() override;
 };
 
 using ConnectionRef = ceph::ref_t<Connection>;