]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr.c: Defer getting ao2_global_obj_ref() until needed.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 6 Oct 2017 18:45:30 +0000 (13:45 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 13 Oct 2017 00:11:02 +0000 (19:11 -0500)
commitb56fa63db8d329f3cf72a1727deb98aee889cda1
tree08af6f17271383af4564453aac70b122df4192b7
parent92c5cf3920267ec3c1b7016908d1c824d5c27744
cdr.c: Defer getting ao2_global_obj_ref() until needed.

The CDR performance gets worse the further it gets behind in processing
stasis messages.  One of the reasons is we were getting the global config
even if we didn't need it.

* Most uses of the global config were only needed on off nominal code
paths so it makes sense to not get it until absolutely needed.

ASTERISK-27335

Change-Id: I00c63b7ec233e5bfffd5d976f05568613d3c2365
main/cdr.c