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/09/15 15:39:03 UTC
fabric commit: updated refs/heads/master to 4427800
Repository: couchdb-fabric
Updated Branches:
refs/heads/master d87ee0db9 -> 442780070
Restore write_quorum_errors metric collection
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/44278007
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/44278007
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/44278007
Branch: refs/heads/master
Commit: 44278007095ce86a248237c664304cadc8baeeef
Parents: d87ee0d
Author: Robert Newson <rn...@apache.org>
Authored: Mon Sep 15 14:37:41 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Sep 15 14:37:41 2014 +0100
----------------------------------------------------------------------
src/fabric_doc_update.erl | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/44278007/src/fabric_doc_update.erl
----------------------------------------------------------------------
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl
index 3c1d068..f593b12 100644
--- a/src/fabric_doc_update.erl
+++ b/src/fabric_doc_update.erl
@@ -129,6 +129,8 @@ force_reply(Doc, [FirstReply|_] = Replies, {Health, W, Acc}) ->
{error, W, [{Doc, FirstReply} | Acc]}
end;
[AcceptedRev | _] ->
+ CounterKey = [fabric, doc_update, write_quorum_errors],
+ couch_stats:increment_counter(CounterKey),
NewHealth = case Health of ok -> accepted; _ -> Health end,
{NewHealth, W, [{Doc, {accepted,AcceptedRev}} | Acc]}
end