Not sure why it wasn't setting STATE_WAIT before. Works now.
}
if (reply.tag == CEPH_MSGR_TAG_WAIT) {
- dout(3) << "connect got WAIT (connection race), and lo, the wait is already over" << dendl;
+ dout(3) << "connect got WAIT (connection race)" << dendl;
+ state = STATE_WAIT;
goto stop_locked;
}
{
lock.Lock();
- while (state != STATE_CLOSED) { // && state != STATE_WAIT) {
+ while (state != STATE_CLOSED) {// && state != STATE_WAIT) {
// standby?
if (!q.empty() && state == STATE_STANDBY)
state = STATE_CONNECTING;