You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2014/12/13 01:53:28 UTC

mesos git commit: Fixed regressions in linux link routing library.

Repository: mesos
Updated Branches:
  refs/heads/master 968a305c1 -> 476d3bfa5


Fixed regressions in linux link routing library.


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

Branch: refs/heads/master
Commit: 476d3bfa5b7ff3276abbb0135d4c4bc0bb27782f
Parents: 968a305
Author: Jie Yu <yu...@gmail.com>
Authored: Fri Dec 12 16:53:17 2014 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Dec 12 16:53:17 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/476d3bfa/src/linux/routing/link/link.cpp
----------------------------------------------------------------------
diff --git a/src/linux/routing/link/link.cpp b/src/linux/routing/link/link.cpp
index eb3211a..53677cd 100644
--- a/src/linux/routing/link/link.cpp
+++ b/src/linux/routing/link/link.cpp
@@ -131,13 +131,13 @@ Try<bool> create(
   }
 
   int error = rtnl_link_veth_add(
-      sock.get().get(),
+      socket.get().get(),
       veth.c_str(),
       peer.c_str(),
       (pid.isNone() ? getpid() : pid.get()));
 
-  if (error = 0) {
-    if (error = -NLE_EXIST) {
+  if (error != 0) {
+    if (error == -NLE_EXIST) {
       return false;
     }
     return Error(nl_geterror(error));