You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/28 14:12:22 UTC

[46/50] couch commit: updated refs/heads/master to 9d0ac7d

Throw a fit if the last monitor of a couch_file is not the 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/9d0ac7d3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/9d0ac7d3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/9d0ac7d3

Branch: refs/heads/master
Commit: 9d0ac7d3486229cb66ddea817926c7905844eef7
Parents: ac3f1c2
Author: Robert Newson <rn...@apache.org>
Authored: Tue Aug 26 11:30:59 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Thu Aug 28 13:00:03 2014 +0100

----------------------------------------------------------------------
 src/couch_file.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/9d0ac7d3/src/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couch_file.erl b/src/couch_file.erl
index 09b8e3c..afb76a3 100644
--- a/src/couch_file.erl
+++ b/src/couch_file.erl
@@ -585,5 +585,6 @@ is_idle(#file{is_sys=false}) ->
     case process_info(self(), monitored_by) of
         {monitored_by, []} -> true;
         {monitored_by, [Tracker]} -> true;
+        {monitored_by, [_]} -> exit(tracker_monitoring_failed);
         _ -> false
     end.