[asterisk-commits] mjordan: branch 13 r425736 - in /branches/13: ./ main/cdr.c

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


Author: mjordan
Date: Thu Oct 16 16:16:59 2014
New Revision: 425736

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=425736
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
........

Merged revisions 425735 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    branches/13/   (props changed)
    branches/13/main/cdr.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: branches/13/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/main/cdr.c?view=diff&rev=425736&r1=425735&r2=425736
==============================================================================
--- branches/13/main/cdr.c (original)
+++ branches/13/main/cdr.c Thu Oct 16 16:16:59 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