You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2017/07/07 23:36:56 UTC

mesos git commit: Fixed initialization of `__address__` in the abscense of `--ip` flag.

Repository: mesos
Updated Branches:
  refs/heads/master 4abb33ec8 -> 786713756


Fixed initialization of `__address__` in the abscense of `--ip` flag.

When we introduced the `__address6__` optional IPv6 storage into
`libprocess` we also introduced a regression because of which the `port`
doesn't get initialized to whatever is specified in the `--port` flag
until the `--ip` flag is specified.

This change fixes the initialization of the `__address__` in the
absence of the `--ip` flag.

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


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

Branch: refs/heads/master
Commit: 78671375662f286128cd80d3b1f6586d0ec35cf8
Parents: 4abb33e
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Fri Jul 7 16:34:23 2017 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Fri Jul 7 16:36:19 2017 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/process.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/78671375/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 264298c..97f737b 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -1150,6 +1150,7 @@ bool initialize(
 
   if (libprocess_flags->port.isSome()) {
     port = libprocess_flags->port.get();
+    __address__.port = port;
   }
 
   if (libprocess_flags->ip.isSome()) {