Repository: mesos
Updated Branches:
  refs/heads/master 7cbd902bb -> 78f1ea321


Added more detailed error message when failing in MountInfoTable::read.

Review: https://reviews.apache.org/r/52597/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/70b227f7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/70b227f7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/70b227f7

Branch: refs/heads/master
Commit: 70b227f7d5662c051d0e978e9e4bfec328854c57
Parents: 7cbd902
Author: Kevin Klues <klue...@gmail.com>
Authored: Wed Oct 12 22:33:51 2016 -0700
Committer: Jie Yu <yujie....@gmail.com>
Committed: Wed Oct 12 22:33:51 2016 -0700

----------------------------------------------------------------------
 src/linux/fs.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/70b227f7/src/linux/fs.cpp
----------------------------------------------------------------------
diff --git a/src/linux/fs.cpp b/src/linux/fs.cpp
index 4b10141..d49d1f5 100644
--- a/src/linux/fs.cpp
+++ b/src/linux/fs.cpp
@@ -138,7 +138,9 @@ Try<MountInfoTable> MountInfoTable::read(
     vector<MountInfoTable::Entry> sortedEntries;
 
     std::function<void(int)> sortFrom = [&](int parentId) {
-      CHECK(!visitedParents.contains(parentId)) << lines.get();
+      CHECK(!visitedParents.contains(parentId))
+        << "Cycle found in mount table hierarchy at entry"
+        << " '" << stringify(parentId) << "': " << std::endl << lines.get();
 
       visitedParents.insert(parentId);
 

Reply via email to