couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1157262 - /couchdb/trunk/src/couchdb/couch_external_server.erl
Date Fri, 12 Aug 2011 21:36:52 GMT
Author: fdmanana
Date: Fri Aug 12 21:36:51 2011
New Revision: 1157262

URL: http://svn.apache.org/viewvc?rev=1157262&view=rev
Log:
Fix function_clause error when using externals
    
This was introduced by revision 1144844.
Closes COUCHDB-1241.



Modified:
    couchdb/trunk/src/couchdb/couch_external_server.erl

Modified: couchdb/trunk/src/couchdb/couch_external_server.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_external_server.erl?rev=1157262&r1=1157261&r2=1157262&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_external_server.erl (original)
+++ couchdb/trunk/src/couchdb/couch_external_server.erl Fri Aug 12 21:36:51 2011
@@ -27,7 +27,8 @@ stop(Pid) ->
     gen_server:cast(Pid, stop).
 
 execute(Pid, JsonReq) ->
-    gen_server:call(Pid, {execute, JsonReq}, infinity).
+    {json, Json} = gen_server:call(Pid, {execute, JsonReq}, infinity),
+    ?JSON_DECODE(Json).
 
 % Gen Server Handlers
 



Mime
View raw message