mirror of https://github.com/sipwise/mediator.git
The `cdr_index` variable already tracks the number of created CDRs, as it points to the slot for the next CDR record to be inserted. It's increased by one at the start of the processing loop, so if we end up skipping over an entry after it's been increased, it must be decreased again, which keeps the count intact and prevents empty CDR records from being created. Fix-up for Ia7e8446fe4953d1391f99ea1530990e3d385c056 Change-Id: Ibb650a4b00978a272ef8f60751f6efda0491a912mr11.0
parent
c56b5f7503
commit
4b99ab1d2b
Loading…
Reference in new issue