couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r960406 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
Date Sun, 04 Jul 2010 22:03:02 GMT
Author: fdmanana
Date: Sun Jul  4 22:03:02 2010
New Revision: 960406

URL: http://svn.apache.org/viewvc?rev=960406&view=rev
Log:
Expecting atom 'true' (JSON boolean) and not the string "true".


Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl?rev=960406&r1=960405&r2=960406&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl Sun Jul  4 22:03:02 2010
@@ -410,7 +410,7 @@ json_to_doc_info({Props}) ->
     RevsInfo = lists:map(
         fun({Change}) ->
             Rev = couch_doc:parse_rev(couch_util:get_value(<<"rev">>, Change)),
-            Del = ("true" == couch_util:get_value(<<"deleted">>, Change)),
+            Del = (true =:= couch_util:get_value(<<"deleted">>, Change)),
             #rev_info{rev=Rev, deleted=Del}
         end, Changes),
     #doc_info{id=Id, high_seq=Seq, revs=RevsInfo}.



Mime
View raw message