Skip to content

Commit

Permalink
Catching broken connections on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Jul 21, 2010
1 parent 234f1f4 commit d7aa9f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/couchrest/server.rb
Expand Up @@ -73,6 +73,8 @@ def create_db(name)
# Restart the CouchDB instance
def restart!
CouchRest.post "#{@uri}/_restart"
rescue RestClient::ServerBrokeConnection
# Shouldn't really happen, but does in CouchDB 1.0.0
end

# Retrive an unused UUID from CouchDB. Server instances manage caching a list of unused UUIDs.
Expand Down

0 comments on commit d7aa9f4

Please sign in to comment.