mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 14:06:27 +00:00
Clarify the pooling functionality by changing the config file keyword
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@101824 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -262,6 +262,10 @@ static int load_odbc_config(void)
|
||||
if (!strcasecmp(v->name, "pooling")) {
|
||||
if (ast_true(v->value))
|
||||
pooling = 1;
|
||||
} else if (!strncasecmp(v->name, "share", 5)) {
|
||||
/* "shareconnections" is a little clearer in meaning than "pooling" */
|
||||
if (ast_false(v->value))
|
||||
pooling = 1;
|
||||
} else if (!strcasecmp(v->name, "limit")) {
|
||||
sscanf(v->value, "%d", &limit);
|
||||
if (ast_true(v->value) && !limit) {
|
||||
@@ -633,7 +637,12 @@ static int reload(void)
|
||||
bse = 1;
|
||||
for (v = ast_variable_browse(config, cat); v; v = v->next) {
|
||||
if (!strcasecmp(v->name, "pooling")) {
|
||||
pooling = 1;
|
||||
if (ast_true(v->value))
|
||||
pooling = 1;
|
||||
} else if (!strncasecmp(v->name, "share", 5)) {
|
||||
/* "shareconnections" is a little clearer in meaning than "pooling" */
|
||||
if (ast_false(v->value))
|
||||
pooling = 1;
|
||||
} else if (!strcasecmp(v->name, "limit")) {
|
||||
sscanf(v->value, "%d", &limit);
|
||||
if (ast_true(v->value) && !limit) {
|
||||
|
||||
Reference in New Issue
Block a user