lock.Lock();
registered.insert(observe->machine_id);
lock.Unlock();
+ delete observe;
}
void handle_notify(MMonObserveNotify *notify)
}
map_ver[notify->machine_id] = notify->ver;
+
+ delete notify;
}
static void send_observe_requests();
which++;
which = which % LAST;
- if(ack->version > last_seen_version)
+ if (ack->version > last_seen_version)
last_seen_version = ack->version;
string w = ack->cmd[0];
}
lock.Unlock();
}
+ delete ack;
}
void send_command()