From: Kefu Chai Date: Thu, 11 Apr 2019 07:50:18 +0000 (+0800) Subject: crimson/net: add setters for Connections X-Git-Tag: v15.1.0~2915^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c273eb6c7d038637634881395ebe49439739d854;p=ceph.git crimson/net: add setters for Connections so we don't directly access its member variables Signed-off-by: Kefu Chai --- diff --git a/src/crimson/net/Connection.h b/src/crimson/net/Connection.h index bc5e3f295c38..b7481fc7db71 100644 --- a/src/crimson/net/Connection.h +++ b/src/crimson/net/Connection.h @@ -60,6 +60,12 @@ class Connection : public seastar::enable_shared_from_this { virtual void print(ostream& out) const = 0; + void set_last_keepalive(utime_t when) { + last_keepalive = when; + } + void set_last_keepalive_ack(utime_t when) { + last_keepalive_ack = when; + } utime_t get_last_keepalive() const { return last_keepalive; } utime_t get_last_keepalive_ack() const { return last_keepalive_ack; } };