rnewson commented on a change in pull request #3927:
URL: https://github.com/apache/couchdb/pull/3927#discussion_r803444194



##########
File path: src/dreyfus/src/dreyfus_rpc.erl
##########
@@ -80,8 +80,13 @@ info_int(DbName, DDoc, IndexName) ->
         {ok, Index} ->
             case dreyfus_index_manager:get_index(DbName, Index) of
                 {ok, Pid} ->
-                    Result = dreyfus_index:info(Pid),
-                    rexi:reply(Result);
+                    case dreyfus_index:info(Pid) of
+                        {ok, Fields} ->
+                            Info = [{signature, Index#index.sig} | Fields],
+                            rexi:reply({ok, Info});
+                        {error, Reason} ->

Review comment:
       actually Clouseau either returns {ok, Info} or fails (and we'd get a 
link exit). I'll make that explicit on the dreyfus side




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to