Update adb command to remove all configs from statsd
Before this change we were only clearing configs from disk.
This change will allow clearing from memory as well. Also,
this change fixes a bug where the iterator moves to the next
element before removing the key from mConfigReceivers
Test: statsd, statsd_test
Change-Id: I9f5e0aced9b89bae7b19ae6d8490c076557fbb08
diff --git a/cmds/statsd/src/StatsService.h b/cmds/statsd/src/StatsService.h
index a32595a..007227e 100644
--- a/cmds/statsd/src/StatsService.h
+++ b/cmds/statsd/src/StatsService.h
@@ -162,9 +162,9 @@
status_t cmd_print_pulled_metrics(FILE* out, const Vector<String8>& args);
/**
- * Removes all configs stored on disk.
+ * Removes all configs stored on disk and on memory.
*/
- status_t cmd_remove_config_files(FILE* out);
+ status_t cmd_remove_all_configs(FILE* out);
/*
* Dump memory usage by statsd.