You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2014/04/23 20:47:16 UTC
git commit: Initialized MetricsProcess during libprocess
initialization.
Repository: mesos
Updated Branches:
refs/heads/master 7228a4d9d -> 0165cdfc0
Initialized MetricsProcess during libprocess initialization.
Review: https://reviews.apache.org/r/20615
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0165cdfc
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0165cdfc
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0165cdfc
Branch: refs/heads/master
Commit: 0165cdfc0da8ee3e3c62692f1fed9ddef2bf4b69
Parents: 7228a4d
Author: Dominic Hamon <dh...@twopensource.com>
Authored: Wed Apr 23 11:45:42 2014 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Wed Apr 23 11:47:11 2014 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/process.cpp | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/0165cdfc/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 2439526..26c16cf 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -64,6 +64,8 @@
#include <process/time.hpp>
#include <process/timer.hpp>
+#include <process/metrics/metrics.hpp>
+
#include <stout/duration.hpp>
#include <stout/foreach.hpp>
#include <stout/lambda.hpp>
@@ -81,6 +83,8 @@
#include "gate.hpp"
#include "synchronized.hpp"
+using namespace process::metrics::internal;
+
using process::wait; // Necessary on some OS's to disambiguate.
using process::http::BadRequest;
@@ -1571,6 +1575,12 @@ void initialize(const string& delegate)
// statistics = new Statistics(LIBPROCESS_STATISTICS_WINDOW);
// }
+ // Ensure metrics process is running.
+ // TODO(bmahler): Consider initializing this consistently with
+ // the other global Processes.
+ MetricsProcess* metricsProcess = MetricsProcess::instance();
+ CHECK_NOTNULL(metricsProcess);
+
// Initialize the mime types.
mime::initialize();