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/windsor-merge to 5899cd4
Date Tue, 26 Aug 2014 10:27:03 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/windsor-merge 14dc5e93d -> 5899cd4f5


Verify that remaining monitor is actually the process tracker


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

Branch: refs/heads/windsor-merge
Commit: 5899cd4f5c1543935d23e6bf87581d16fd75d56e
Parents: 14dc5e9
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Aug 26 11:23:34 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Tue Aug 26 11:23:34 2014 +0100

----------------------------------------------------------------------
 src/couch_file.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/5899cd4f/src/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couch_file.erl b/src/couch_file.erl
index be6b634..09b8e3c 100644
--- a/src/couch_file.erl
+++ b/src/couch_file.erl
@@ -581,8 +581,9 @@ is_idle(#file{is_sys=true}) ->
         _ -> false
     end;
 is_idle(#file{is_sys=false}) ->
+    Tracker = whereis(couch_stats_process_tracker),
     case process_info(self(), monitored_by) of
         {monitored_by, []} -> true;
-        {monitored_by, [_]} -> true;
+        {monitored_by, [Tracker]} -> true;
         _ -> false
     end.


Mime
View raw message