config: Add file size and nanosecond resolution fields to the cached modified config...
authorRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:09:07 +0000 (19:09 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:09:07 +0000 (19:09 +0000)
commit75067daac7b3afa750cd974c22371d0690ee0f0b
tree0c24521f03d1de0903af639bd46de7183b74558e
parent61a4a98ed92d0a658e19226bee5e2f11435cb965
config: Add file size and nanosecond resolution fields to the cached modified config file information.

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.

(closes issue AST-1303)

Review: https://reviewboard.asterisk.org/r/3235/
........

Merged revisions 408387 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 408388 from http://svn.asterisk.org/svn/asterisk/branches/11
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/config.c