If we have a connection race, and we lose, we may end up with outgoing
messages *and* be in ACCEPTING_SESSION. If we then fault, we want to
leave connect_seq at 0 to avoid triggering a reset.
Signed-off-by: Sage Weil <sage@redhat.com>
connection->write_lock.unlock();
- if (state != START_CONNECT && state != CONNECTING && state != WAIT) {
+ if (state != START_CONNECT &&
+ state != CONNECTING &&
+ state != WAIT &&
+ state != ACCEPTING_SESSION /* due to connection race */) {
// policy maybe empty when state is in accept
if (connection->policy.server) {
ldout(cct, 1) << __func__ << " server, going to standby" << dendl;