couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [10/19] git commit: Strip the < and > from the pid keys
Date Mon, 11 Feb 2013 13:51:16 GMT
Strip the < and > from the pid keys


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

Branch: refs/heads/nodejs_couchdb
Commit: 595c1eb7b21d65362ce3e7aa6983890f7bd82252
Parents: 915c7e7
Author: Jason Smith (work) <jhs@iriscouch.com>
Authored: Thu Feb 7 09:41:41 2013 +0000
Committer: Jason Smith (work) <jhs@iriscouch.com>
Committed: Thu Feb 7 09:41:41 2013 +0000

----------------------------------------------------------------------
 src/couchdb/couch_query_servers.erl |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/595c1eb7/src/couchdb/couch_query_servers.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_query_servers.erl b/src/couchdb/couch_query_servers.erl
index b3e1c3a..26382d7 100644
--- a/src/couchdb/couch_query_servers.erl
+++ b/src/couchdb/couch_query_servers.erl
@@ -357,8 +357,9 @@ handle_call({get_debugging, Lang}, _From, Server) ->
     case ets:lookup(LangProcs, Lang) of
     [{Lang, Procs}] ->
         Ports = lists:map(fun(#proc{pid=Pid, debug_port=Port}) ->
-            PidStr = io_lib:format("~w", [Pid]),
-            {?l2b(PidStr), Port}
+            [PidStr] = io_lib:format("~w", [Pid]),
+            Pids = string:substr(PidStr, 2, length(PidStr) - 2),
+            {?l2b(Pids), Port}
         end, Procs),
         {reply, Ports, Server};
     _ ->


Mime
View raw message