mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merge "config: Fix locking for extconfig reload." into 13
This commit is contained in:
@@ -2841,8 +2841,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;
|
||||
@@ -2896,6 +2894,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();
|
||||
|
||||
|
Reference in New Issue
Block a user