Skip to content

Commit

Permalink
reset server.abended state after successful isMaster call
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Gallagher committed Apr 15, 2016
1 parent b6e2fa3 commit e7ce7c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@ func (cluster *mongoCluster) AcquireSocket(mode Mode, slaveOk bool, syncTimeout
cluster.syncServers()
time.Sleep(100 * time.Millisecond)
continue
} else {
server.Lock()
server.abended = false
server.Unlock()
}
}
return s, nil
Expand Down

0 comments on commit e7ce7c5

Please sign in to comment.