summaryrefslogtreecommitdiff
path: root/UPGRADE-1.6.txt
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-06-05 18:02:08 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-06-05 18:02:08 +0000
commit61b0be06007bc39515e3ba539dcc267b04ff5937 (patch)
treeff0467a4c7ea8c7a7ff8dfdd988fdd0fd3bf774b /UPGRADE-1.6.txt
parente763d704700674342c8957f82bddeab3e15dfa08 (diff)
config: Fix config files not reloading when only an included file changes.
The twisted logic determining if a config file should be reloaded was mostly broken and disabled. The incorrect test that ASTERISK-23383 fixed actually reenabled the broken logic. The incorrect test was causing the timestamp to always be cleared which caused config files with includes to always be reloaded. * Made wildcard includes always cause a reload. Determining if a file was deleted cannot be determined without restructuring the cache to determine if any files are missing from the last files actually loaded. Also without refactoring config_text_file_load(), the glob loop couldn't check more than one file for changes anyway. * Made remove the cache entry if the file no longer exists when trying to get its timestamp or it is no longer a regular file. This fixes the corner case where the file was loaded, then deleted, then the config reloaded, then the file restored with the same timestamp, and then the config reloaded again. * Made remove the cache entry include list when actually loading the file. This gets rid of any stale includes the file had from the last time the file was loaded. ASTERISK-23683 #close Reported by: tootai Review: https://reviewboard.asterisk.org/r/3575/ ........ Merged revisions 415225 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 415229 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 415230 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'UPGRADE-1.6.txt')
0 files changed, 0 insertions, 0 deletions