You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2016/04/17 20:02:51 UTC
mem3 commit: updated refs/heads/2594-single-node-warn to 4855450
Repository: couchdb-mem3
Updated Branches:
refs/heads/2594-single-node-warn [created] 4855450b8
for N > NodeCount db creation, warn, dont error
Closes COUCHDB-2594
Supercedes #11
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/4855450b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/4855450b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/4855450b
Branch: refs/heads/2594-single-node-warn
Commit: 4855450b8da5076e5de049b0718932f2087fc4fb
Parents: 699308f
Author: Jan Lehnardt <ja...@apache.org>
Authored: Sun Apr 17 20:02:21 2016 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Sun Apr 17 20:02:21 2016 +0200
----------------------------------------------------------------------
src/mem3_util.erl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/4855450b/src/mem3_util.erl
----------------------------------------------------------------------
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;