You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2014/06/23 20:54:22 UTC
git commit: Ensured the master's work directory is created during
start up.
Repository: mesos
Updated Branches:
refs/heads/master ff64e4ed6 -> 1ce8d31fd
Ensured the master's work directory is created during start up.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1ce8d31f
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1ce8d31f
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1ce8d31f
Branch: refs/heads/master
Commit: 1ce8d31fda545d69aea0637107f507c2b512adc9
Parents: ff64e4e
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Mon Jun 23 11:52:58 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Mon Jun 23 11:54:15 2014 -0700
----------------------------------------------------------------------
src/master/main.cpp | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/1ce8d31f/src/master/main.cpp
----------------------------------------------------------------------
diff --git a/src/master/main.cpp b/src/master/main.cpp
index 68cd56b..4d39c35 100644
--- a/src/master/main.cpp
+++ b/src/master/main.cpp
@@ -186,6 +186,12 @@ int main(int argc, char** argv)
EXIT(1) << "--work_dir needed for replicated log based registry";
}
+ Try<Nothing> mkdir = os::mkdir(flags.work_dir.get());
+ if (mkdir.isError()) {
+ EXIT(1) << "Failed to create work directory '" << flags.work_dir.get()
+ << "': " << mkdir.error();
+ }
+
if (zk.isSome()) {
// Use replicated log with ZooKeeper.
if (flags.quorum.isNone()) {