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:
parent
a6b456dfbd
commit
68af4cb62e
@ -844,11 +844,13 @@ public:
|
||||
* Configuration to check any interdependencies between values or to calculate
|
||||
* derived ones.
|
||||
*
|
||||
* @param params The parameters the configuration was configured with.
|
||||
*
|
||||
* @return True, if everything is ok.
|
||||
*
|
||||
* @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.
|
||||
|
@ -246,7 +246,7 @@ bool Specification::configure(Configuration& configuration, const MXS_CONFIG_PAR
|
||||
|
||||
if (configured)
|
||||
{
|
||||
configured = configuration.configure();
|
||||
configured = configuration.post_configure(params);
|
||||
}
|
||||
|
||||
return configured;
|
||||
@ -433,7 +433,7 @@ void Configuration::remove(Type* pValue)
|
||||
m_values.erase(it);
|
||||
}
|
||||
|
||||
bool Configuration::configure()
|
||||
bool Configuration::post_configure(const MXS_CONFIG_PARAMETER& params)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
bool CacheConfig::configure()
|
||||
bool CacheConfig::post_configure(const MXS_CONFIG_PARAMETER&)
|
||||
{
|
||||
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:
|
||||
bool configure() override;
|
||||
bool post_configure(const MXS_CONFIG_PARAMETER& params) override;
|
||||
|
||||
private:
|
||||
static config::Specification s_specification;
|
||||
|
Loading…
x
Reference in New Issue
Block a user