You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#31968366 SET PERSIST FOR COMPONENTS GENERATES A FLOOD OF WARNINGS
Description:
-----------
Persisting component-defined system variables causes a flood of "Currently
unknown variable" messages when the component is installed and registering
its system variables. This also results in repeated and unnecessary
invocations of the check() and update() callback functions for each system
variable, persisted or otherwise.
Analysis:
---------
While registering component system variable it will add the variable into
system_variable_hash and then in Persisted_variables_cache::set_persist_options()
the persisted variables will be find in system_variable_hash if not found, then it
will be stored in m_persist_plugin_variables.
In the current case while loading the validate password component we have
validate_password.check_user_name which is 5th variable while loading the component.
So while registering first variable validate_password.check_user_name will not
be found in system_variable_hash, and hence that variable is stored in
m_persist_plugin_variables and the storing happens for multiple times because
m_persist_plugin_variables is a vector type.
Fix:
----
changed m_persist_plugin_variables type to unordered_set from vector type,
so that variables duplication will not be allowed.
RB#26373
0 commit comments