You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/02/10 09:03:39 UTC

[GitHub] [couchdb] rnewson commented on a change in pull request #3927: Include index sig in _search_info response

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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org