[asterisk-dev] [Code Review] Rate limit astdb->sync() calls

Russell Bryant russell at digium.com
Tue Sep 7 13:43:48 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/825/
-----------------------------------------------------------

(Updated 2010-09-07 13:43:48.788466)


Review request for Asterisk Developers.


Changes
-------

Fix the attached diff to actually be relevant.


Summary
-------

There has been a discussion going on about astdb performance on the -dev list.  This patch implements rate limiting on astdb->sync() executions.  It will ensure that it will not get called any more often than twice a second.  It is being posted here so that it can be tested to see if it makes a difference in the test scenario.


Diffs (updated)
-----

  /branches/1.6.2/main/db.c 285234 

Diff: https://reviewboard.asterisk.org/r/825/diff


Testing
-------

I have not tested this.  I'm posting it here in hopes that Stefan Schmidt will be able to test this and compare it against the results he got before.


Thanks,

Russell




More information about the asterisk-dev mailing list