couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [47/50] couch commit: updated refs/heads/master to 9d0ac7d
Date Thu, 28 Aug 2014 12:12:23 GMT
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/ac3f1c25
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/ac3f1c25
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/ac3f1c25

Branch: refs/heads/master
Commit: ac3f1c25f6f13cca31fd54d9e3c1fbf0ac26639a
Parents: 3ab1e24
Author: Robert Newson <rnewson@apache.org>
Authored: Tue Aug 26 11:23:34 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Aug 28 13:00:03 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/ac3f1c25/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