[asterisk-commits] mjordan: branch 12 r425735 - /branches/12/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 16 16:13:13 CDT 2014


Author: mjordan
Date: Thu Oct 16 16:13:08 2014
New Revision: 425735

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=425735
Log:
main/cdr: Use 'time' when rescheduling batched CDRs as opposed to 'size'

When refactoring CDRs to use the configuration framework, a 'whoops' was
introduced where the CDR batch size was used when rescheduling a batch,
as opposed to the time duration. This patch corrects that obvious mistake.

ASTERISK-24426 #close
Reported by: Shane Blaser

Modified:
    branches/12/main/cdr.c

Modified: branches/12/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cdr.c?view=diff&rev=425735&r1=425734&r2=425735
==============================================================================
--- branches/12/main/cdr.c (original)
+++ branches/12/main/cdr.c Thu Oct 16 16:13:08 2014
@@ -3520,7 +3520,7 @@
 	/* manually reschedule from this point in time */
 
 	ast_mutex_lock(&cdr_sched_lock);
-	cdr_sched = ast_sched_add(sched, mod_cfg->general->batch_settings.size * 1000, submit_scheduled_batch, NULL);
+	cdr_sched = ast_sched_add(sched, mod_cfg->general->batch_settings.time * 1000, submit_scheduled_batch, NULL);
 	ast_mutex_unlock(&cdr_sched_lock);
 	/* returning zero so the scheduler does not automatically reschedule */
 	return 0;




More information about the asterisk-commits mailing list