You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2015/07/06 22:42:55 UTC

[2/3] mesos git commit: Rename Option::get(const T& _t) to getOrElse() in libprocess.

Rename Option<T>::get(const T& _t) to getOrElse() in libprocess.

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


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

Branch: refs/heads/master
Commit: b207d0cc1672e7bc21766c08e9dc56da29d35438
Parents: 959d906
Author: Mark Wang <ma...@gmail.com>
Authored: Mon Jul 6 12:57:30 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Mon Jul 6 12:57:31 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/b207d0cc/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 2f8072b..c3e1763 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -2149,7 +2149,7 @@ bool ProcessManager::handle(
       // fail thus causing the socket to get closed (but now
       // libprocess will ignore responses, see ignore_data).
       Option<string> agent = request->headers.get("User-Agent");
-      if (agent.get("").find("libprocess/") == string::npos) {
+      if (agent.getOrElse("").find("libprocess/") == string::npos) {
         if (accepted) {
           VLOG(2) << "Accepted libprocess message to " << request->path;
           dispatch(proxy, &HttpProxy::enqueue, Accepted(), *request);