We may replace an existing pipe in the STANDBY state if the previous
attempt failed during accept() (see previous patches).
This might fix #1378.
Signed-off-by: Sage Weil <sage@inktank.com>
<< " == " << connect.connect_seq
<< dendl;
assert(existing->state == STATE_CONNECTING ||
- existing->state == STATE_OPEN); // this will win
+ existing->state == STATE_OPEN ||
+ existing->state == STATE_STANDBY);
reply.tag = CEPH_MSGR_TAG_WAIT;
existing->pipe_lock.Unlock();
msgr->lock.Unlock();