MXS-2556 Rename configure -> post_configure
Rename config::Configuration::configure() to config::Configuration::post_configure(). Latter name makes it unambiguously clear at what point the function is called.
This commit is contained in:
@ -844,11 +844,13 @@ public:
|
|||||||
* Configuration to check any interdependencies between values or to calculate
|
* Configuration to check any interdependencies between values or to calculate
|
||||||
* derived ones.
|
* derived ones.
|
||||||
*
|
*
|
||||||
|
* @param params The parameters the configuration was configured with.
|
||||||
|
*
|
||||||
* @return True, if everything is ok.
|
* @return True, if everything is ok.
|
||||||
*
|
*
|
||||||
* @note The default implementation returns true.
|
* @note The default implementation returns true.
|
||||||
*/
|
*/
|
||||||
virtual bool configure();
|
virtual bool post_configure(const MXS_CONFIG_PARAMETER& params);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The number of values in the configuration.
|
* @return The number of values in the configuration.
|
||||||
|
@ -246,7 +246,7 @@ bool Specification::configure(Configuration& configuration, const MXS_CONFIG_PAR
|
|||||||
|
|
||||||
if (configured)
|
if (configured)
|
||||||
{
|
{
|
||||||
configured = configuration.configure();
|
configured = configuration.post_configure(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
return configured;
|
return configured;
|
||||||
@ -433,7 +433,7 @@ void Configuration::remove(Type* pValue)
|
|||||||
m_values.erase(it);
|
m_values.erase(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Configuration::configure()
|
bool Configuration::post_configure(const MXS_CONFIG_PARAMETER& params)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
2
server/modules/filter/cache/cacheconfig.cc
vendored
2
server/modules/filter/cache/cacheconfig.cc
vendored
@ -176,7 +176,7 @@ CacheConfig::~CacheConfig()
|
|||||||
MXS_FREE(this->zStorage_options);
|
MXS_FREE(this->zStorage_options);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CacheConfig::configure()
|
bool CacheConfig::post_configure(const MXS_CONFIG_PARAMETER&)
|
||||||
{
|
{
|
||||||
bool configured = true;
|
bool configured = true;
|
||||||
|
|
||||||
|
2
server/modules/filter/cache/cacheconfig.hh
vendored
2
server/modules/filter/cache/cacheconfig.hh
vendored
@ -70,7 +70,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool configure() override;
|
bool post_configure(const MXS_CONFIG_PARAMETER& params) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static config::Specification s_specification;
|
static config::Specification s_specification;
|
||||||
|
Reference in New Issue
Block a user