mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
Merge pull request #1016 from bydsky/bugfix
Fix Issue #6992: stop the accepter and mark all pipes down before rebind Backport: emperor, dumpling Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
commit
d77101ccf8
@ -155,8 +155,6 @@ int Accepter::rebind(const set<int>& avoid_ports)
|
||||
{
|
||||
ldout(msgr->cct,1) << "accepter.rebind avoid " << avoid_ports << dendl;
|
||||
|
||||
stop();
|
||||
|
||||
// invalidate our previously learned address.
|
||||
msgr->unlearn_addr();
|
||||
|
||||
|
@ -278,9 +278,9 @@ int SimpleMessenger::rebind(const set<int>& avoid_ports)
|
||||
{
|
||||
ldout(cct,1) << "rebind avoid " << avoid_ports << dendl;
|
||||
assert(did_bind);
|
||||
int r = accepter.rebind(avoid_ports);
|
||||
accepter.stop();
|
||||
mark_down_all();
|
||||
return r;
|
||||
return accepter.rebind(avoid_ports);
|
||||
}
|
||||
|
||||
int SimpleMessenger::start()
|
||||
|
Loading…
Reference in New Issue
Block a user