You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 11:05:58 UTC
[22/49] chttpd commit: updated refs/heads/windsor-merge to 554ef74
Add error formatting for maintenance mode
If all nodes end up in maintenance mode we need to report that progress
isn't possible due to a "nodedown".
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/b5002112
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/b5002112
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/b5002112
Branch: refs/heads/windsor-merge
Commit: b50021125276e3d8042a2ca03b526c47181b562b
Parents: 34c1475
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Oct 4 17:36:55 2013 -0500
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Jul 29 18:20:05 2014 +0100
----------------------------------------------------------------------
src/chttpd.erl | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/b5002112/src/chttpd.erl
----------------------------------------------------------------------
diff --git a/src/chttpd.erl b/src/chttpd.erl
index 982aa9a..08be216 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -705,6 +705,8 @@ error_info(file_exists) ->
"created, the file already exists.">>};
error_info({r_quorum_not_met, Reason}) ->
{412, <<"read_quorum_not_met">>, Reason};
+error_info({maintenance_mode, Node}) ->
+ {412, <<"nodedown">>, Node};
error_info({w_quorum_not_met, Reason}) ->
{500, <<"write_quorum_not_met">>, Reason};
error_info(request_uri_too_long) ->