OSDN Git Service

Small fix to addconfig in statsd.
authorDavid Chen <dwchen@google.com>
Wed, 27 Dec 2017 21:37:01 +0000 (13:37 -0800)
committerDavid Chen <dwchen@google.com>
Wed, 27 Dec 2017 21:37:01 +0000 (13:37 -0800)
commit7d8aa4ded5af280930418045edfb4450b455d2c8
tree8164df63d1e648fa0f3759eadcd020ea4e79ee3b
parentcb37da8b13a8f70942d253ac56a9ad3ae3cbf7ba
Small fix to addconfig in statsd.

AddConfiguration now returns false if the incoming byte array can't
even be parsed into the expected proto format. Unfortunately, we
can't fully evaluate if this configuration is valid. Still, this
gives the caller a chance to know that the parameters it sent can't
even be parsed.

Test: Tested that statsd still builds.
Change-Id: I7ba7c64adc4bc77549d5e9133e212a4870645786
cmds/statsd/src/StatsService.cpp