mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Alternate Channel Storage Backends
Full details: http://s.asterisk.net/dc679ec3 The previous proof-of-concept showed that the cpp_map_name_id alternate storage backed performed better than all the others so this final PR adds only that option. You still need to enable it in menuselect under the "Alternate Channel Storage Backends" category. To select which one is used at runtime, set the "channel_storage_backend" option in asterisk.conf to one of the values described in asterisk.conf.sample. The default remains "ao2_legacy". UpgradeNote: With this release, you can now select an alternate channel storage backend based on C++ Maps. Using the new backend may increase performance and reduce the chances of deadlocks on heavily loaded systems. For more information, see http://s.asterisk.net/dc679ec3
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "asterisk/utils.h"
|
||||
|
||||
#include "../defaults.h"
|
||||
#include "channelstorage.h"
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
@@ -475,6 +476,8 @@ void load_asterisk_conf(void)
|
||||
ast_set2_flag(&ast_options, ast_true(v->value), AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS);
|
||||
} else if (!strcasecmp(v->name, "sounds_search_custom_dir")) {
|
||||
ast_set2_flag(&ast_options, ast_true(v->value), AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM);
|
||||
} else if (!strcasecmp(v->name, "channel_storage_backend")) {
|
||||
internal_channel_set_current_storage_driver(v->value);
|
||||
} else if (!strcasecmp(v->name, "disable_remote_console_shell")) {
|
||||
ast_option_disable_remote_console_shell = ast_true(v->value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user