diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2011-04-20 10:46:51 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2011-04-20 10:46:51 +0000 |
commit | 901849763f419e49a1e91bbf889b5bb500b1212d (patch) | |
tree | 9a6ca6a4ad3bdc751cffb507c17edbad0330ca1e /src/couchdb | |
parent | 76ce001c041d6dfef1117f14a9e1e20f77f9df39 (diff) |
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
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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. |