From: Michal Jarzabek Date: Thu, 14 Jul 2016 17:50:38 +0000 (+0100) Subject: msg/AsyncConnection: add const to mem functions X-Git-Tag: v11.0.1~281^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9a3950492278c7fe2110765f4cb4d39ada14d073;p=ceph-ci.git msg/AsyncConnection: add const to mem functions Signed-off-by: Michal Jarzabek --- diff --git a/src/msg/async/AsyncConnection.h b/src/msg/async/AsyncConnection.h index 9d6c3435eef..e1001119e94 100644 --- a/src/msg/async/AsyncConnection.h +++ b/src/msg/async/AsyncConnection.h @@ -97,7 +97,7 @@ class AsyncConnection : public Connection { state = STATE_ACCEPTING_WAIT_CONNECT_MSG; return 0; } - bool is_queued() { + bool is_queued() const { return !out_q.empty() || outcoming_bl.length(); } void shutdown_socket() { @@ -130,7 +130,7 @@ class AsyncConnection : public Connection { } return m; } - bool _has_next_outgoing() { + bool _has_next_outgoing() const { return !out_q.empty(); } void reset_recv_state();