[Asterisk-code-review] res statsd.c: Made use defaults if the statsd.conf file does... (asterisk[16])

Richard Mudgett asteriskteam at digium.com
Wed Oct 3 07:53:36 CDT 2018


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/10385 )

Change subject: res_statsd.c: Made use defaults if the statsd.conf file does not exist.
......................................................................


Patch Set 1:

> I think the ability to tell loader.c that the module is disabled
 > will still be helpful but this is also a good idea.
 > 
 > As for declining vs not declining I think you've hit the right
 > balance.  It's reasonable to decline in response to system errors,
 > if we can't allocate ACO structures then other stuff will likely
 > fail anyways.
 > 
 > One thing I wish that we could decline upon invalid statsd.conf but
 > succeed for missing statsd.conf and system errors.  I haven't
 > looked into what it would take to get ACO to support a flag causing
 > missing config to initialize defaults and return success. 
 > Obviously it would be a change of behavior but maybe that's the way
 > ACO should just work?

The config framework could fairly easily be made to return a different value if
the config file does not exist.  This would allow the module to setup whatever
implicit default configuration it wants when there is no explicit user
configuration.  The features module already has to do this if an error is
returned for historical reasons.


-- 
To view, visit https://gerrit.asterisk.org/10385
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: comment
Gerrit-Change-Id: If1068a582ec54ab7fb437265cb5370a97a825737
Gerrit-Change-Number: 10385
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Wed, 03 Oct 2018 12:53:36 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181003/d935eca6/attachment.html>


More information about the asterisk-code-review mailing list