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:31:27 UTC

[couchdb] 01/01: Fix clouseau detection

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

davisp pushed a commit to branch fix-mango-check
in repository https://gitbox.apache.org/repos/asf/couchdb.git

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

    Fix clouseau detection
    
    This check breaks if clouseau is excluded entirely from the release.
---
 src/mango/src/mango_native_proc.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mango/src/mango_native_proc.erl b/src/mango/src/mango_native_proc.erl
index 274ae11..9994fbe 100644
--- a/src/mango/src/mango_native_proc.erl
+++ b/src/mango/src/mango_native_proc.erl
@@ -345,7 +345,8 @@ make_text_field_name([P | Rest], Type) ->
 
 
 validate_index_info(IndexInfo) ->
-    IdxTypes = case clouseau_rpc:connected() of
+    HaveClouseau = erlang:function_exported(clouseau_rpc, connected, 0),
+    IdxTypes = case HaveClouseau andalso clouseau_rpc:connected() of
         true ->
             [mango_idx_view, mango_idx_text];
         false ->