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:26 UTC
[couchdb] branch fix-mango-check created (now 2cae5e5)
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a change to branch fix-mango-check
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
at 2cae5e5 Fix clouseau detection
This branch includes the following new commits:
new 2cae5e5 Fix clouseau detection
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb] 01/01: Fix clouseau detection
Posted by da...@apache.org.
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 ->