Skip to content

Commit

Permalink
Avoid replicator crash on list_to_existing_atom/1 calls
Browse files Browse the repository at this point in the history
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.0.x@1095355 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
fdmanana committed Apr 20, 2011
1 parent c5c7377 commit ca7b9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couchdb/couch_rep.erl
Expand Up @@ -398,7 +398,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.
Expand Down

0 comments on commit ca7b9f7

Please sign in to comment.