MXS-1384: Remove parameter length limitations
There is no reason to limit configuration parameter names or values to 256 characters.
This commit is contained in:
@ -1080,8 +1080,8 @@ MXS_CONFIG_PARAMETER* config_clone_param(const MXS_CONFIG_PARAMETER* param)
|
||||
|
||||
if (p2)
|
||||
{
|
||||
p2->name = MXS_STRNDUP_A(param->name, MAX_PARAM_LEN);
|
||||
p2->value = MXS_STRNDUP_A(param->value, MAX_PARAM_LEN);
|
||||
p2->name = MXS_STRDUP_A(param->name);
|
||||
p2->value = MXS_STRDUP_A(param->value);
|
||||
p2->next = NULL;
|
||||
}
|
||||
|
||||
|
@ -26,14 +26,6 @@ MXS_BEGIN_DECLS
|
||||
#define DEFAULT_POLLSLEEP 1000 /**< Default poll wait time (milliseconds) */
|
||||
#define DEFAULT_NTHREADS 1 /**< Default number of polling threads */
|
||||
|
||||
/**
|
||||
* Maximum length for configuration parameter value.
|
||||
*/
|
||||
enum
|
||||
{
|
||||
MAX_PARAM_LEN = 256
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Generate default module parameters
|
||||
*
|
||||
|
Reference in New Issue
Block a user