Loading cmds/statsd/src/StatsLogProcessor.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,6 @@ void StatsLogProcessor::flushIfNecessaryLocked( } void StatsLogProcessor::WriteDataToDisk() { mkdir(STATS_DATA_DIR, S_IRWXU); std::lock_guard<std::mutex> lock(mMetricsMutex); for (auto& pair : mMetricsManagers) { const ConfigKey& key = pair.first; Loading cmds/statsd/src/config/ConfigManager.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -181,8 +181,6 @@ void ConfigManager::Dump(FILE* out) { } void ConfigManager::update_saved_configs(const ConfigKey& key, const StatsdConfig& config) { mkdir(STATS_SERVICE_DIR, S_IRWXU); // If there is a pre-existing config with same key we should first delete it. remove_saved_configs(key); Loading cmds/statsd/statsd.rc +5 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,8 @@ service statsd /system/bin/statsd class main user statsd group statsd log on post-fs-data # Create directory for statsd mkdir /data/misc/stats-data/ 0770 statsd statsd mkdir /data/misc/stats-service/ 0770 statsd statsd Loading
cmds/statsd/src/StatsLogProcessor.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -301,7 +301,6 @@ void StatsLogProcessor::flushIfNecessaryLocked( } void StatsLogProcessor::WriteDataToDisk() { mkdir(STATS_DATA_DIR, S_IRWXU); std::lock_guard<std::mutex> lock(mMetricsMutex); for (auto& pair : mMetricsManagers) { const ConfigKey& key = pair.first; Loading
cmds/statsd/src/config/ConfigManager.cpp +0 −2 Original line number Diff line number Diff line Loading @@ -181,8 +181,6 @@ void ConfigManager::Dump(FILE* out) { } void ConfigManager::update_saved_configs(const ConfigKey& key, const StatsdConfig& config) { mkdir(STATS_SERVICE_DIR, S_IRWXU); // If there is a pre-existing config with same key we should first delete it. remove_saved_configs(key); Loading
cmds/statsd/statsd.rc +5 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,8 @@ service statsd /system/bin/statsd class main user statsd group statsd log on post-fs-data # Create directory for statsd mkdir /data/misc/stats-data/ 0770 statsd statsd mkdir /data/misc/stats-service/ 0770 statsd statsd