From 768c6fdd534a128988f76401bf3c3fe3cc7f837a Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 19 Aug 2025 17:28:41 -0400 Subject: [PATCH] msg/Connection: move destructor to object file To ensure vtable is embedded in Connection object file. Signed-off-by: Patrick Donnelly (cherry picked from commit 090f5226176c372261023c91b9ace1fe76e94b9d) --- src/msg/Connection.cc | 1 + src/msg/Connection.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/msg/Connection.cc b/src/msg/Connection.cc index 9183871b594..3ea6f0a5606 100644 --- a/src/msg/Connection.cc +++ b/src/msg/Connection.cc @@ -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; diff --git a/src/msg/Connection.h b/src/msg/Connection.h index 5ffc5066eb1..7e074fe5829 100644 --- a/src/msg/Connection.h +++ b/src/msg/Connection.h @@ -252,9 +252,7 @@ protected: msgr(m) {} - ~Connection() override { - //generic_dout(0) << "~Connection " << this << dendl; - } + ~Connection() override; }; using ConnectionRef = ceph::ref_t; -- 2.39.5