From 4855450b8da5076e5de049b0718932f2087fc4fb Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sun, 17 Apr 2016 20:02:21 +0200 Subject: [PATCH] for N > NodeCount db creation, warn, dont error Closes COUCHDB-2594 Supercedes #11 --- src/mem3_util.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mem3_util.erl b/src/mem3_util.erl index ea43473..15603bf 100644 --- a/src/mem3_util.erl +++ b/src/mem3_util.erl @@ -200,7 +200,8 @@ n_val(undefined, NodeCount) -> n_val(N, NodeCount) when is_list(N) -> n_val(list_to_integer(N), NodeCount); n_val(N, NodeCount) when is_integer(NodeCount), N > NodeCount -> - couch_log:error("Request to create N=~p DB but only ~p node(s)", [N, NodeCount]), + couch_log:warning("Request to create N=~p DB but only ~p node(s)", [N, NodeCount]), + couch_log:warning("If you are running a single-node installation, you can ignore the previous warning", []), NodeCount; n_val(N, _) when N < 1 -> 1;