Signed-off-by: Sage Weil <sage@redhat.com>
void set_features(uint64_t f) { features = f; }
void set_feature(uint64_t f) { features |= f; }
+ virtual int get_con_mode() const {
+ return CEPH_CON_MODE_CRC;
+ }
+
void post_rx_buffer(ceph_tid_t tid, bufferlist& bl) {
Mutex::Locker l(lock);
++rx_buffers_version;
ceph_assert(!delay_state);
}
+int AsyncConnection::get_con_mode() const {
+ return protocol->get_con_mode();
+}
+
void AsyncConnection::maybe_start_delay_thread()
{
if (!delay_state) {
return target_addr;
}
+ int get_con_mode() const override;
+
private:
enum {
STATE_NONE,
virtual void read_event() = 0;
virtual void write_event() = 0;
virtual bool is_queued() = 0;
+
+ int get_con_mode() const {
+ return auth_meta->con_mode;
+ }
};
#endif /* _MSG_ASYNC_PROTOCOL_ */