couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1095355 - /couchdb/branches/1.0.x/src/couchdb/couch_rep.erl
Date Wed, 20 Apr 2011 10:45:55 GMT
Author: fdmanana
Date: Wed Apr 20 10:45:55 2011
New Revision: 1095355

URL: http://svn.apache.org/viewvc?rev=1095355&view=rev
Log:
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.


Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_rep.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_rep.erl?rev=1095355&r1=1095354&r2=1095355&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_rep.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_rep.erl Wed Apr 20 10:45:55 2011
@@ -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.



Mime
View raw message