messenger->lock.Lock();
- if (!messenger->endpoint_stopped) {
+ if (!messenger->destination_stopped) {
Pipe *p = new Pipe(messenger, Pipe::STATE_ACCEPTING);
p->sd = sd;
p->start_reader();
//tell everything else it's time to stop
lock.Lock();
- endpoint_stopped = true;
+ destination_stopped = true;
wait_cond.Signal();
lock.Unlock();
}
backoff = utime_t();
dout(20) << "connect success " << connect_seq << ", lossy = " << policy.lossy << dendl;
- if (!messenger->endpoint_stopped) {
+ if (!messenger->destination_stopped) {
Connection * cstate = connection_state->get();
pipe_lock.Unlock();
messenger->dispatch_queue.queue_connect(cstate);
discard_queue();
- if (!messenger->endpoint_stopped) {
+ if (!messenger->destination_stopped) {
Connection * cstate = connection_state->get();
pipe_lock.Unlock();
messenger->dispatch_queue.queue_reset(cstate);
dout(10) << "was_session_reset" << dendl;
discard_queue();
- if (!messenger->endpoint_stopped) {
+ if (!messenger->destination_stopped) {
Connection * cstate = connection_state->get();
pipe_lock.Unlock();
messenger->dispatch_queue.queue_remote_reset(cstate);
dout(10) << "register_entity " << name << dendl;
lock.Lock();
- if (!endpoint_stopped) { //already have a working entity set
+ if (!destination_stopped) { //already have a working entity set
lock.Unlock();
return false;
}
else
my_type = name.type();
- endpoint_stopped = false;
+ destination_stopped = false;
dout(10) << "register_entity " << name << " at " << get_myaddr() << dendl;
{
// local?
if (ms_addr.is_local_to(dest_addr)) {
- if (dest_addr.get_erank() == 0 && !endpoint_stopped) {
+ if (dest_addr.get_erank() == 0 && !destination_stopped) {
// local
dout(20) << "submit_message " << *m << " local" << dendl;
dispatch_queue.local_delivery(m, m->get_priority());
// reap dead pipes
reaper();
- if (endpoint_stopped) {
+ if (destination_stopped) {
dout(10) << "wait: everything stopped" << dendl;
break; // everything stopped.
}
entity_addr_t ms_addr;
// local
- bool endpoint_stopped;
+ bool destination_stopped;
// remote
hash_map<entity_addr_t, Pipe*> rank_pipe;
Messenger(entity_name_t()),
accepter(this),
lock("SimpleMessenger::lock"), started(false), did_bind(false), need_addr(true),
- endpoint_stopped(true), my_type(-1),
+ destination_stopped(true), my_type(-1),
global_seq_lock("SimpleMessenger::global_seq_lock"), global_seq(0),
dispatch_thread(this), messenger(this) {
// for local dmsg delivery