You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2019/10/18 11:08:15 UTC

[couchdb-ken] branch ken-query-servers-2 created (now 52fbbdf)

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

rnewson pushed a change to branch ken-query-servers-2
in repository https://gitbox.apache.org/repos/asf/couchdb-ken.git.


      at 52fbbdf  Always include 'query' as an allowed language

This branch includes the following new commits:

     new 52fbbdf  Always include 'query' as an allowed language

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-ken] 01/01: Always include 'query' as an allowed language

Posted by rn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch ken-query-servers-2
in repository https://gitbox.apache.org/repos/asf/couchdb-ken.git

commit 52fbbdfd92de2e277ecfebc10a641483c8d5b2ef
Author: Robert Newson <rn...@apache.org>
AuthorDate: Fri Oct 18 12:07:50 2019 +0100

    Always include 'query' as an allowed language
---
 src/ken_server.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ken_server.erl b/src/ken_server.erl
index f082751..b33d01f 100644
--- a/src/ken_server.erl
+++ b/src/ken_server.erl
@@ -527,7 +527,8 @@ prune_worker_table(State) ->
 allowed_languages() ->
     Config = couch_proc_manager:get_servers_from_env("COUCHDB_QUERY_SERVER_") ++
         couch_proc_manager:get_servers_from_env("COUCHDB_NATIVE_QUERY_SERVER_"),
-    [list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config].
+    Allowed = [list_to_binary(string:to_lower(Lang)) || {Lang, _Cmd} <- Config],
+    [<<"query">> | Allowed].
 
 config(Key, Default) ->
     config:get("ken", Key, Default).