]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/AsyncConnection: add const to mem functions
authorMichal Jarzabek <stiopa@gmail.com>
Thu, 14 Jul 2016 17:50:38 +0000 (18:50 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Thu, 8 Sep 2016 19:22:08 +0000 (20:22 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/msg/async/AsyncConnection.h

index 9d6c3435eef64468ba05b17e4baa8261ddfb1a19..e1001119e942993b208aa5657cdf065a4da04d97 100644 (file)
@@ -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();