Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a04c32b1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Create /data/misc/stats-data/ and /data/misc/stats-service/ in...

Merge "Create /data/misc/stats-data/ and /data/misc/stats-service/ in statsd.rc rather than during the runtime of statsd"
parents eb0a68b2 079cea9a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
@@ -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);

+5 −0
Original line number Diff line number Diff line
@@ -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