[asterisk-dev] [Code Review] 3235: config: Add file size and nanosecond resolution fields to the cached modified config file information.

rmudgett reviewboard at asterisk.org
Mon Feb 17 15:57:20 CST 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers.

Bugs: AST-1303

Repository: Asterisk


Repeatedly modifying config files and reloading too fast sometimes fails to reload the configuration because the cached modification timestamp has one second resolution.

* Added file size and nanosecond resolution fields to the cached config file modification timestamp information.  Now if the file size changes or the file system supports nanosecond resolution the modified file has a better chance of being detecting for reload.

* Added a missing unlock in an off-nominal code path.


  /branches/1.8/main/config.c 408290 

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


Added a debug statement to the cfmstat_cmp() and checked that the saved stat() information changed when expected.
Did several reloads of app_queue which indicates if it is not reloading queuerules.conf if the file did not change.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140217/14e9dfe8/attachment.html>

More information about the asterisk-dev mailing list