Repository: couchdb-couch Updated Branches: refs/heads/windsor-merge 5899cd4f5 -> f5705a011
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/f5705a01 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/f5705a01 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/f5705a01 Branch: refs/heads/windsor-merge Commit: f5705a01139ed5706af203b512658376718d0ddf Parents: 5899cd4 Author: Robert Newson <[email protected]> Authored: Tue Aug 26 11:30:59 2014 +0100 Committer: Robert Newson <[email protected]> Committed: Tue Aug 26 11:30:59 2014 +0100 ---------------------------------------------------------------------- src/couch_file.erl | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/f5705a01/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.
