Merge "config: Fix locking for extconfig reload."

This commit is contained in:
Jenkins2
2018-02-20 06:14:08 -06:00
committed by Gerrit Code Review

View File

@@ -2839,8 +2839,6 @@ static void clear_config_maps(void)
{
struct ast_config_map *map;
SCOPED_MUTEX(lock, &config_lock);
while (config_maps) {
map = config_maps;
config_maps = config_maps->next;
@@ -2894,6 +2892,7 @@ int read_config_maps(void)
char *driver, *table, *database, *textpri, *stringp, *tmp;
struct ast_flags flags = { CONFIG_FLAG_NOREALTIME };
int pri;
SCOPED_MUTEX(lock, &config_lock);
clear_config_maps();