You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/01/20 19:02:28 UTC

mesos git commit: Passed an optional parameter by reference.

Repository: mesos
Updated Branches:
  refs/heads/master 2a3ec7190 -> c159516db


Passed an optional parameter by reference.

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


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

Branch: refs/heads/master
Commit: c159516dbea0fde9c0335844dd4bac685f9dad0e
Parents: 2a3ec71
Author: Neil Conway <ne...@gmail.com>
Authored: Fri Jan 20 20:01:33 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Fri Jan 20 20:01:33 2017 +0100

----------------------------------------------------------------------
 src/common/protobuf_utils.cpp | 2 +-
 src/common/protobuf_utils.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c159516d/src/common/protobuf_utils.cpp
----------------------------------------------------------------------
diff --git a/src/common/protobuf_utils.cpp b/src/common/protobuf_utils.cpp
index 0b42926..dd20759 100644
--- a/src/common/protobuf_utils.cpp
+++ b/src/common/protobuf_utils.cpp
@@ -106,7 +106,7 @@ StatusUpdate createStatusUpdate(
     const Option<bool>& healthy,
     const Option<Labels>& labels,
     const Option<ContainerStatus>& containerStatus,
-    const Option<TimeInfo> unreachableTime)
+    const Option<TimeInfo>& unreachableTime)
 {
   StatusUpdate update;
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/c159516d/src/common/protobuf_utils.hpp
----------------------------------------------------------------------
diff --git a/src/common/protobuf_utils.hpp b/src/common/protobuf_utils.hpp
index 6e02019..faa7e2a 100644
--- a/src/common/protobuf_utils.hpp
+++ b/src/common/protobuf_utils.hpp
@@ -82,7 +82,7 @@ StatusUpdate createStatusUpdate(
     const Option<bool>& healthy = None(),
     const Option<Labels>& labels = None(),
     const Option<ContainerStatus>& containerStatus = None(),
-    const Option<TimeInfo> unreachableTime = None());
+    const Option<TimeInfo>& unreachableTime = None());
 
 
 StatusUpdate createStatusUpdate(