]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config: Add file size and nanosecond resolution fields to the cached modified config...
authorRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:07:42 +0000 (19:07 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 19 Feb 2014 19:07:42 +0000 (19:07 +0000)
commit21a7a6f146df8da7518db509e428005ab822dbab
tree8afd0f7313688f50d97b0e589f71f8d77caf4bb1
parente9d641a2de2b4469d3d9eacc2cd42d13484cce37
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

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