You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/09/27 18:37:14 UTC

[couchdb] branch prototype/fdb-layer updated: Fix mango index validation

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/prototype/fdb-layer by this push:
     new ff2cdb8  Fix mango index validation
ff2cdb8 is described below

commit ff2cdb84f639ea26ac7b1ad85abb0a49c5141c74
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Fri Sep 27 13:32:44 2019 -0500

    Fix mango index validation
    
    This check fails if Clouseau isn't present. Though we don't need
    Clouseau to perform the check so just avoid it.
---
 src/mango/src/mango_native_proc.erl | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/mango/src/mango_native_proc.erl b/src/mango/src/mango_native_proc.erl
index 274ae11..cbf3622 100644
--- a/src/mango/src/mango_native_proc.erl
+++ b/src/mango/src/mango_native_proc.erl
@@ -345,12 +345,7 @@ make_text_field_name([P | Rest], Type) ->
 
 
 validate_index_info(IndexInfo) ->
-    IdxTypes = case clouseau_rpc:connected() of
-        true ->
-            [mango_idx_view, mango_idx_text];
-        false ->
-            [mango_idx_view]
-    end,
+    IdxTypes = [mango_idx_view, mango_idx_text],
     Results = lists:foldl(fun(IdxType, Results0) ->
         try
             IdxType:validate_index_def(IndexInfo),