Fix a bug of not deleting previously added config files on disk Bug: 73304022 Test: statsd_test Change-Id: Ic024d40da97ed79cb405a5da1f0c9abac0436b34
diff --git a/bin/src/config/ConfigManager.cpp b/bin/src/config/ConfigManager.cpp index 06ff603..fbb0fdd 100644 --- a/bin/src/config/ConfigManager.cpp +++ b/bin/src/config/ConfigManager.cpp
@@ -101,7 +101,7 @@ } void ConfigManager::remove_saved_configs(const ConfigKey& key) { - string suffix = StringPrintf("%d-%lld", key.GetUid(), (long long)key.GetId()); + string suffix = StringPrintf("%d_%lld", key.GetUid(), (long long)key.GetId()); StorageManager::deleteSuffixedFiles(STATS_SERVICE_DIR, suffix.c_str()); }