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/21 17:38:28 UTC

mesos git commit: Minor fix to use the more idiomatic `send` method.

Repository: mesos
Updated Branches:
  refs/heads/master 1b15ff7a8 -> d687808e4


Minor fix to use the more idiomatic `send` method.

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


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

Branch: refs/heads/master
Commit: d687808e416f93657f7651d9854ef7b86d63a422
Parents: 1b15ff7
Author: Jiang Yan Xu <xu...@apple.com>
Authored: Thu Jul 20 17:49:23 2017 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Fri Jul 21 10:38:10 2017 -0700

----------------------------------------------------------------------
 src/log/network.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d687808e/src/log/network.hpp
----------------------------------------------------------------------
diff --git a/src/log/network.hpp b/src/log/network.hpp
index 635079f..4aef8b3 100644
--- a/src/log/network.hpp
+++ b/src/log/network.hpp
@@ -245,10 +245,10 @@ public:
     for (iterator = pids.begin(); iterator != pids.end(); ++iterator) {
       const process::UPID& pid = *iterator;
       if (filter.count(pid) == 0) {
-        // NOTE: Here we just use the pid of the network to send this message
-        // since we don't need to deliver responses back to the caller. Any
-        // incoming messages addressed to the network are simply dropped.
-        process::post(self(), pid, m);
+        // NOTE: Just send this message as the network process itself
+        // since we don't need to deliver responses back to the caller.
+        // Incoming messages addressed to the network are simply dropped.
+        send(pid, m);
       }
     }
     return Nothing();