Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7 from apache/ken-query-servers-2
Browse files Browse the repository at this point in the history
Always include 'query' as an allowed language
  • Loading branch information
rnewson committed Oct 18, 2019
2 parents 5161e54 + 52fbbdf commit 846783b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ken_server.erl
Expand Up @@ -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).
Expand Down

0 comments on commit 846783b

Please sign in to comment.