]> git.apps.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, 22 Sep 2025 16:37:27 +0000 (12:37 -0400)
To ensure vtable is embedded in Connection object file.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 090f5226176c372261023c91b9ace1fe76e94b9d)

src/msg/Connection.cc
src/msg/Connection.h

index 9183871b59429ec66add6b2ddf8c3c50427d3841..3ea6f0a56069e1f5b4093806ebe2d64fda9d5cb8 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 5ffc5066eb1d538a3aeee37955c1589a3e2046f3..7e074fe582941d310bfff52b4a912478c964462f 100644 (file)
@@ -252,9 +252,7 @@ protected:
       msgr(m)
   {}
 
-  ~Connection() override {
-    //generic_dout(0) << "~Connection " << this << dendl;
-  }
+  ~Connection() override;
 };
 
 using ConnectionRef = ceph::ref_t<Connection>;