[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
Wed Feb 19 13:12:32 CST 2014

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

(Updated Feb. 19, 2014, 1:12 p.m.)


This change has been marked as submitted.

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 detected 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/20140219/5d816d81/attachment.html>

More information about the asterisk-dev mailing list