To address warning:
/root/ceph/src/crimson/osd/osd_connection_priv.h:89:27: warning:
‘crimson::osd::OSDConnectionPriv&
crimson::osd::get_osd_priv(crimson::net::Connection*)’ defined but not
used [-Wunused-function]
89 | static OSDConnectionPriv &get_osd_priv(crimson::net::Connection
*conn) { | ^~~~~~~~~~~~
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
ConnectionPipeline replicated_request_conn_pipeline;
};
-static OSDConnectionPriv &get_osd_priv(crimson::net::Connection *conn) {
+static inline OSDConnectionPriv &get_osd_priv(crimson::net::Connection *conn) {
if (!conn->has_user_private()) {
conn->set_user_private(std::make_unique<OSDConnectionPriv>());
}