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/11/27 15:31:27 UTC
mesos git commit: Fixed a code snippet in libprocess documentation.
Repository: mesos
Updated Branches:
refs/heads/master d007c590e -> bf507a208
Fixed a code snippet in libprocess documentation.
Review: https://reviews.apache.org/r/64081/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bf507a20
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bf507a20
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bf507a20
Branch: refs/heads/master
Commit: bf507a208da3df360294896f083dd163004324aa
Parents: d007c59
Author: Alexander Rukletsov <ru...@gmail.com>
Authored: Mon Nov 27 16:31:00 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Mon Nov 27 16:31:00 2017 +0100
----------------------------------------------------------------------
3rdparty/libprocess/README.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/bf507a20/3rdparty/libprocess/README.md
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/README.md b/3rdparty/libprocess/README.md
index ba09653..d8b28fa 100644
--- a/3rdparty/libprocess/README.md
+++ b/3rdparty/libprocess/README.md
@@ -205,9 +205,10 @@ Future<Person> mother(const std::string& name)
promise->fail(person.failure());
} else if (person.isDiscarded()) {
promise->discard();
+ } else {
+ CHECK_READY(person);
+ promise->set(find(person->mother));
}
- CHECK_READY(person);
- promise->set(find(person->mother));
delete promise;
});
@@ -825,4 +826,4 @@ The benchmark that we've used to drive the run queue and event queue
performance improvements can be found in
[benchmarks.cpp](https://github.com/apache/mesos/blob/master/3rdparty/libprocess/src/tests/benchmarks.cpp#L426). You
can run the benchmark yourself by invoking `./benchmarks
---gtest_filter=ProcessTest.*ThroughputPerformance`.
\ No newline at end of file
+--gtest_filter=ProcessTest.*ThroughputPerformance`.