couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [36/41] chttpd commit: updated refs/heads/2080-port-cors to e2c2bd7
Date Tue, 02 Jun 2015 19:31:26 GMT
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 <rnewson@apache.org>
Authored: Fri Oct 3 15:23:54 2014 +0100
Committer: Robert Newson <rnewson@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),
     [


Mime
View raw message