You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2013/03/04 23:26:55 UTC

svn commit: r1452568 - /incubator/mesos/trunk/src/master/http.cpp

Author: vinodkone
Date: Mon Mar  4 22:26:55 2013
New Revision: 1452568

URL: http://svn.apache.org/r1452568
Log:
Exposed a master statistic for outstanding resource offers.

From: Ben Mahler <be...@gmail.com>
Review: https://reviews.apache.org/r/9127

Modified:
    incubator/mesos/trunk/src/master/http.cpp

Modified: incubator/mesos/trunk/src/master/http.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/master/http.cpp?rev=1452568&r1=1452567&r2=1452568&view=diff
==============================================================================
--- incubator/mesos/trunk/src/master/http.cpp (original)
+++ incubator/mesos/trunk/src/master/http.cpp Mon Mar  4 22:26:55 2013
@@ -275,6 +275,7 @@ Future<Response> stats(
   object.values["lost_tasks"] = master.stats.tasks[TASK_LOST];
   object.values["valid_status_updates"] = master.stats.validStatusUpdates;
   object.values["invalid_status_updates"] = master.stats.invalidStatusUpdates;
+  object.values["outstanding_offers"] = master.offers.size();
 
   // Get total and used (note, not offered) resources in order to
   // compute capacity of scalar resources.