Renamed the dbshard module to schemarouter.

This commit is contained in:
Markus Makela
2015-02-24 05:49:38 +02:00
parent fc969acc73
commit 5477cdf5eb
19 changed files with 98 additions and 98 deletions

View File

@ -283,7 +283,7 @@ int error_count = 0;
char *weightby;
char *version_string;
bool is_rwsplit = false;
bool is_dbshard = false;
bool is_schemarouter = false;
char *allow_localhost_match_wildcard_host;
obj->element = service_alloc(obj->object, router);
@ -310,13 +310,13 @@ int error_count = 0;
{
is_rwsplit = true;
}
else if (strncasecmp(router, "dbshard", strlen("dbshard")+1) == 0)
else if (strncasecmp(router, "schemarouter", strlen("schemarouter")+1) == 0)
{
is_dbshard = true;
is_schemarouter = true;
}
else if(strncasecmp(router, "shardrouter", strlen("dbshard")+1) == 0)
else if(strncasecmp(router, "shardrouter", strlen("schemarouter")+1) == 0)
{
is_dbshard = true;
is_schemarouter = true;
}
if (obj->element == NULL) /*< if module load failed */
{
@ -467,7 +467,7 @@ int error_count = 0;
}
}
if(is_dbshard)
if(is_schemarouter)
{
CONFIG_PARAMETER* param = NULL;
char* subservices;