#define dout_subsys ceph_subsys_ms
#undef dout_prefix
-#define dout_prefix _prefix(_dout, msgr)
+#define dout_prefix _prefix(_dout, this)
static ostream& _prefix(std::ostream *_dout, SimpleMessenger *msgr) {
return *_dout << "-- " << msgr->get_myaddr() << " ";
}
dispatch_throttler(cct, string("msgr_dispatch_throttler-") + mname, cct->_conf->ms_dispatch_throttle_bytes),
reaper_started(false), reaper_stop(false),
timeout(0),
- local_connection(new Connection),
- msgr(this)
+ local_connection(new Connection)
{
pthread_spin_init(&global_seq_lock, PTHREAD_PROCESS_PRIVATE);
init_local_connection();
{
if (msize) {
ldout(cct,10) << "dispatch_throttle_release " << msize << " to dispatch throttler "
- << msgr->dispatch_throttler.get_current() << "/"
- << msgr->dispatch_throttler.get_max() << dendl;
+ << dispatch_throttler.get_current() << "/"
+ << dispatch_throttler.get_max() << dendl;
dispatch_throttler.put(msize);
}
}
// bind to a socket
int r = accepter.bind(bind_addr);
if (r >= 0)
- msgr->did_bind = true;
+ did_bind = true;
return r;
}
p->pipe_lock.Lock();
p->start_reader();
p->pipe_lock.Unlock();
- msgr->pipes.insert(p);
+ pipes.insert(p);
lock.Unlock();
return p;
}
void SimpleMessenger::init_local_connection()
{
- local_connection->peer_addr = msgr->my_inst.addr;
- local_connection->peer_type = msgr->my_type;
+ local_connection->peer_addr = my_inst.addr;
+ local_connection->peer_type = my_type;
}