From 901849763f419e49a1e91bbf889b5bb500b1212d Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Wed, 20 Apr 2011 10:46:51 +0000 Subject: Merged revision 1095355 from branch 1.0.x Avoid replicator crash on list_to_existing_atom/1 calls This happens when a remote endpoint exposes new information in the database URI that is not recognized by this CouchDB version. Closes COUCHDB-1004. Applied Adam's simple 1 line fix. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1095356 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index c38fe529..5c9fbce6 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -392,7 +392,7 @@ dbname(#db{name = Name}) -> dbinfo(#http_db{} = Db) -> {DbProps} = couch_rep_httpc:request(Db), - [{list_to_existing_atom(?b2l(K)), V} || {K,V} <- DbProps]; + [{couch_util:to_existing_atom(K), V} || {K,V} <- DbProps]; dbinfo(Db) -> {ok, Info} = couch_db:get_db_info(Db), Info. -- cgit v1.2.3