Repository: mesos
Updated Branches:
  refs/heads/master 27a2fb864 -> d2aacda42


Tweaked initialization order in executor driver.

We should initialize libprocess before calling into any libprocess
facilities (in this case, `process::Latch`).

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


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

Branch: refs/heads/master
Commit: d2aacda42ba9f258b393d4ca6c78410b8a207154
Parents: aacc49e
Author: Neil Conway <neil.con...@gmail.com>
Authored: Tue Sep 20 18:02:00 2016 +0200
Committer: Michael Park <mp...@apache.org>
Committed: Tue Sep 20 19:57:55 2016 +0200

----------------------------------------------------------------------
 src/exec/exec.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d2aacda4/src/exec/exec.cpp
----------------------------------------------------------------------
diff --git a/src/exec/exec.cpp b/src/exec/exec.cpp
index 448069e..1dc2039 100644
--- a/src/exec/exec.cpp
+++ b/src/exec/exec.cpp
@@ -620,12 +620,12 @@ MesosExecutorDriver::MesosExecutorDriver(mesos::Executor* 
_executor)
     return;
   }
 
-  // Initialize Latch.
-  latch = new Latch();
-
   // Initialize libprocess.
   process::initialize();
 
+  // Initialize Latch.
+  latch = new Latch();
+
   // Initialize logging.
   if (flags.initialize_driver_logging) {
     logging::initialize("mesos", flags);

Reply via email to