Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #7 from apache/ken-query-servers-2
Always include 'query' as an allowed language
  • Loading branch information
rnewson committed Oct 18, 2019
2 parents 5161e54 + 52fbbdf commit 846783b19f0443b8b7495af9252d1539f20e146d
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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).

0 comments on commit 846783b

Please sign in to comment.