OSDN Git Service

2 updates to storing configs on disk
authoryro <yro@google.com>
Sun, 19 Nov 2017 22:33:56 +0000 (14:33 -0800)
committeryro <yro@google.com>
Sun, 19 Nov 2017 22:33:56 +0000 (14:33 -0800)
commit9c98c05b6fd59ed5695a0d636780259905a416cd
treef0ffb198d76bcff61c183483dae6d27943f6f31c
parentb3bd84d71dec39ed8af73724ad8504fe9e5d0cfb
2 updates to storing configs on disk

1. When an existing config is updated, remove the outdated config from
disk to stop accumulating configs.
2. Check disk to remove configs to make sure we delete lingering files
that does not live on memory.

Test: statsd, statsd_test, manual
Change-Id: Iedce4b6eb99a3d36bb5e1d1ccc0d88c84859e8f5
cmds/statsd/src/config/ConfigManager.cpp