couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject couch commit: updated refs/heads/master to 735c4f2
Date Sun, 07 Sep 2014 15:23:54 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master db58e794f -> 735c4f299


Really fix MatchSpec for get_stale_proc_count


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

Branch: refs/heads/master
Commit: 735c4f299d9be6584a9f2dbbcf1445c9e64351c1
Parents: db58e79
Author: Robert Newson <rnewson@apache.org>
Authored: Sun Sep 7 16:23:27 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Sun Sep 7 16:23:27 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/735c4f29/src/couch_proc_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_proc_manager.erl b/src/couch_proc_manager.erl
index 8f29c00..7ca8e01 100644
--- a/src/couch_proc_manager.erl
+++ b/src/couch_proc_manager.erl
@@ -123,7 +123,7 @@ handle_call(get_proc_count, _From, State) ->
 
 handle_call(get_stale_proc_count, _From, State) ->
     #state{threshold_ts = T0} = State,
-    MatchSpec = [{#proc_int{t0='$1', _='_'}, [{'<', '$1', T0}], [true]}],
+    MatchSpec = [{#proc_int{t0='$1', _='_'}, [{'<', '$1', {T0}}], [true]}],
     {reply, ets:select_count(?PROCS, MatchSpec), State};
 
 handle_call({get_proc, #doc{body={Props}}=DDoc, DDocKey}, From, State) ->


Mime
View raw message