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/28 14:11:53 UTC

[17/50] couch commit: updated refs/heads/master to 9d0ac7d

Don't match on response from couch_stats_collector:decrement/1

Margaret's calls aren't always going to return `ok`, so we need to be
a bit more defensive here.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/936e74b1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/936e74b1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/936e74b1

Branch: refs/heads/master
Commit: 936e74b1b3baf0ec784c7f755e391f08d2621af0
Parents: c903fd2
Author: Benjamin Anderson <b...@banjiewen.net>
Authored: Wed Nov 20 19:02:27 2013 -0800
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Aug 28 13:00:00 2014 +0100

----------------------------------------------------------------------
 src/couch_stats_collector.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/936e74b1/src/couch_stats_collector.erl
----------------------------------------------------------------------
diff --git a/src/couch_stats_collector.erl b/src/couch_stats_collector.erl
index 99814de..2ed647c 100644
--- a/src/couch_stats_collector.erl
+++ b/src/couch_stats_collector.erl
@@ -106,7 +106,7 @@ handle_cast({track_process_count, Pid, Stat}, State) ->
 
 handle_info({'DOWN', Ref, _, _, _}, State) ->
     Stat = dict:fetch(Ref, State),
-    ok = couch_stats_collector:decrement(Stat),
+    couch_stats_collector:decrement(Stat),
     {noreply, dict:erase(Ref, State)}.
 
 code_change(_OldVersion, State, _Extra) when is_list(State) ->