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:12:07 +0000 (19:12 -0500)
commit2eea087401041e36b39fa6c248394eeefedd7ccf
tree915708bd6013f5eebee98b3eed2357c01a96d356
parent7c7a9178740587fc5a120d59608ce3005478b5af
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