You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2015/06/02 21:31:26 UTC
[36/41] chttpd commit: updated refs/heads/2080-port-cors to e2c2bd7
Tolerate empty candidate list
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/4c521b16
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/4c521b16
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/4c521b16
Branch: refs/heads/2080-port-cors
Commit: 4c521b1694500715aa3cc476b8c0fb003a00cf09
Parents: ab80f31
Author: Robert Newson <rn...@apache.org>
Authored: Fri Oct 3 15:23:54 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Apr 21 19:04:31 2015 +0100
----------------------------------------------------------------------
src/chttpd_misc.erl | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/4c521b16/src/chttpd_misc.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl
index ca89270..f1a45d3 100644
--- a/src/chttpd_misc.erl
+++ b/src/chttpd_misc.erl
@@ -283,6 +283,11 @@ db_pid_stats(Mod, Candidates) ->
end
end, [], Candidates
),
+ format_pid_stats(Mailboxes).
+
+format_pid_stats([]) ->
+ [];
+format_pid_stats(Mailboxes) ->
Sorted = lists:sort(Mailboxes),
Count = length(Sorted),
[