mirror of
https://github.com/ceph/ceph
synced 2025-01-31 15:32:38 +00:00
monclient: avoid dup subscribe messages
This commit is contained in:
parent
d8c8da8649
commit
88fd161523
@ -368,15 +368,16 @@ void MonClient::_renew_subs()
|
||||
}
|
||||
|
||||
dout(10) << "renew_subs" << dendl;
|
||||
|
||||
if (sub_renew_sent == utime_t())
|
||||
sub_renew_sent = g_clock.now();
|
||||
|
||||
MMonSubscribe *m = new MMonSubscribe;
|
||||
m->what = sub_have;
|
||||
if (cur_mon < 0)
|
||||
_reopen_session();
|
||||
_send_mon_message(m);
|
||||
else {
|
||||
if (sub_renew_sent == utime_t())
|
||||
sub_renew_sent = g_clock.now();
|
||||
|
||||
MMonSubscribe *m = new MMonSubscribe;
|
||||
m->what = sub_have;
|
||||
_send_mon_message(m);
|
||||
}
|
||||
}
|
||||
|
||||
void MonClient::handle_subscribe_ack(MMonSubscribeAck *m)
|
||||
|
Loading…
Reference in New Issue
Block a user