| commit | e72252b6886096eef308164b830fe84dd3c6c01d | [log] [tgz] |
|---|---|---|
| author | Chenjie Yu <cjyu@google.com> | Thu Feb 01 13:19:35 2018 -0800 |
| committer | Chenjie Yu <cjyu@google.com> | Thu Feb 01 13:22:27 2018 -0800 |
| tree | 632fa7d5562b42b9ee57f32d4839c66b5325956c | |
| parent | 731f9fa6b3ab28c48d3f8a29b2a16d9ca85c44e8 [diff] [blame] |
Add command to clear puller cache Test: manual test Change-Id: Id1fa48b5a6f2200d22f4a746763f65d0c8d65f72
diff --git a/cmds/statsd/src/external/StatsPuller.cpp b/cmds/statsd/src/external/StatsPuller.cpp index cadc535..da14434 100644 --- a/cmds/statsd/src/external/StatsPuller.cpp +++ b/cmds/statsd/src/external/StatsPuller.cpp
@@ -59,6 +59,11 @@ return ret; } +void StatsPuller::ClearCache() { + lock_guard<std::mutex> lock(mLock); + mCachedData.clear(); +} + } // namespace statsd } // namespace os } // namespace android