You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by mi...@apache.org on 2014/09/10 12:06:45 UTC
fabric commit: updated refs/heads/master to f600e07
Repository: couchdb-fabric
Updated Branches:
refs/heads/master 48e31be58 -> f600e0786
Move maintenance_mode to the couchdb section
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/f600e078
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/f600e078
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/f600e078
Branch: refs/heads/master
Commit: f600e07864b15403a5d627fd3a633c5e4c7e3f24
Parents: 48e31be
Author: Mike Wallace <mi...@apache.org>
Authored: Wed Sep 10 11:02:21 2014 +0100
Committer: Mike Wallace <mi...@apache.org>
Committed: Wed Sep 10 11:04:35 2014 +0100
----------------------------------------------------------------------
src/fabric_db_update_listener.erl | 2 +-
src/fabric_rpc.erl | 2 +-
src/fabric_view_changes.erl | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/f600e078/src/fabric_db_update_listener.erl
----------------------------------------------------------------------
diff --git a/src/fabric_db_update_listener.erl b/src/fabric_db_update_listener.erl
index ab69491..82a70ad 100644
--- a/src/fabric_db_update_listener.erl
+++ b/src/fabric_db_update_listener.erl
@@ -68,7 +68,7 @@ start_update_notifiers(DbName) ->
% rexi endpoint
start_update_notifier(DbNames) ->
{Caller, Ref} = get(rexi_from),
- Notify = config:get("cloudant", "maintenance_mode", "false") /= "true",
+ Notify = config:get("couchdb", "maintenance_mode", "false") /= "true",
State = #cb_state{client_pid = Caller, client_ref = Ref, notify = Notify},
Options = [{parent, Caller}, {dbnames, DbNames}],
couch_event:listen(?MODULE, handle_db_event, State, Options).
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/f600e078/src/fabric_rpc.erl
----------------------------------------------------------------------
diff --git a/src/fabric_rpc.erl b/src/fabric_rpc.erl
index b0099c8..eef9f30 100644
--- a/src/fabric_rpc.erl
+++ b/src/fabric_rpc.erl
@@ -386,7 +386,7 @@ set_io_priority(DbName, Options) ->
end,
case erlang:get(io_priority) of
{interactive, _} ->
- case config:get("cloudant", "maintenance_mode", "false") of
+ case config:get("couchdb", "maintenance_mode", "false") of
"true" ->
% Done to silence error logging by rexi_server
rexi:reply({rexi_EXIT, {maintenance_mode, node()}}),
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/f600e078/src/fabric_view_changes.erl
----------------------------------------------------------------------
diff --git a/src/fabric_view_changes.erl b/src/fabric_view_changes.erl
index c166190..92d08e7 100644
--- a/src/fabric_view_changes.erl
+++ b/src/fabric_view_changes.erl
@@ -85,7 +85,7 @@ keep_sending_changes(DbName, Args, Callback, Seqs, AccIn, Timeout, UpListen, T0)
user_acc = AccOut
} = Collector,
LastSeq = pack_seqs(NewSeqs),
- MaintenanceMode = config:get("cloudant", "maintenance_mode"),
+ MaintenanceMode = config:get("couchdb", "maintenance_mode"),
if Limit > Limit2, Feed == "longpoll";
MaintenanceMode == "true"; MaintenanceMode == "nolb" ->
Callback({stop, LastSeq, pending_count(Offset)}, AccOut);