trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geor...@apache.org
Subject svn commit: r912046 - in /incubator/trafficserver/traffic/trunk/proxy: Plugin.cc stats/Stats.h
Date Sat, 20 Feb 2010 00:12:46 GMT
Author: georgep
Date: Sat Feb 20 00:12:45 2010
New Revision: 912046

URL: http://svn.apache.org/viewvc?rev=912046&view=rev
Log:
TS-197: Fix initialization of Stats coupled and floating point mutexes during startup if using
the SDK API/plugins.
Review: Leif H.

Modified:
    incubator/trafficserver/traffic/trunk/proxy/Plugin.cc
    incubator/trafficserver/traffic/trunk/proxy/stats/Stats.h

Modified: incubator/trafficserver/traffic/trunk/proxy/Plugin.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/Plugin.cc?rev=912046&r1=912045&r2=912046&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/Plugin.cc (original)
+++ incubator/trafficserver/traffic/trunk/proxy/Plugin.cc Sat Feb 20 00:12:45 2010
@@ -35,7 +35,7 @@
 #include "Plugin.h"
 #include "PluginDB.h"
 #include "ink_snprintf.h"
-
+#include "stats/Stats.h"
 
 // HPUX:
 //   LD_SHAREDCMD=ld -b
@@ -301,6 +301,7 @@
 
   if (INIT_ONCE) {
     api_init();
+    init_inkapi_stat_system();
 
     RecGetRecordString_Xmalloc("proxy.config.plugin.plugin_dir", &plugin_dir);
     RecGetRecordString_Xmalloc("proxy.config.plugin.extensions_dir", &extensions_dir);

Modified: incubator/trafficserver/traffic/trunk/proxy/stats/Stats.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/proxy/stats/Stats.h?rev=912046&r1=912045&r2=912046&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/proxy/stats/Stats.h (original)
+++ incubator/trafficserver/traffic/trunk/proxy/stats/Stats.h Sat Feb 20 00:12:45 2010
@@ -224,4 +224,6 @@
   return m_type == RECD_INT ? (float) tmp.rec_int : tmp.rec_float;
 }
 
+void init_inkapi_stat_system();
+
 #endif // STATS_H



Mime
View raw message