summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2020-02-19 21:51:52 +0100
committerJoan Touzet <wohali@users.noreply.github.com>2020-02-19 23:30:45 +0000
commite0cff2f85ec43dbee203e17a3b45d3bd912a8da9 (patch)
tree3f3353492584cae67aebab34fdf0365a064544c6
parent1e37457de4786973558773118e518566760b4720 (diff)
downloadcouchdb-e0cff2f85ec43dbee203e17a3b45d3bd912a8da9.tar.gz
Revert "fix: single node state (#2575)"
This reverts commit 91ecf6777cc5fff93483b8e92c8daadd7ff33fdc.
-rw-r--r--src/setup/src/setup.erl12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/setup/src/setup.erl b/src/setup/src/setup.erl
index cc64ae438..3d23229b8 100644
--- a/src/setup/src/setup.erl
+++ b/src/setup/src/setup.erl
@@ -65,15 +65,13 @@ is_cluster_enabled() ->
end.
is_single_node_enabled(Dbs) ->
- % admins != empty AND dbs exist OR `[couchdb] single_node` is set to true
+ % admins != empty AND dbs exist
Admins = config:get("admins"),
HasDbs = has_cluster_system_dbs(Dbs),
- SingleNodeConfig = config:get_boolean("couchdb", "single_node", false),
- case {Admins, HasDbs, SingleNodeConfig} of
- {_, _, true} -> true;
- {[], _, _} -> false;
- {_, false, _} -> false;
- {_,_,_} -> true
+ case {Admins, HasDbs} of
+ {[], _} -> false;
+ {_, false} -> false;
+ {_,_} -> true
end.
cluster_system_dbs() ->