This repository was archived by the owner on Mar 1, 2026. It is now read-only.
Commit 3695eed
committed
Bug#33912761: Plugin persisted variable restore issue
Description:
-----------
Plugin persisted variables are actually restored from persisted storage after loading the
registered plugin on startup with the call of
Persisted_variables_cache::set_persisted_options(false), although the "false"
parameter means to restore only non-plugin variables.
Analysis:
--------
Initially all plugin persisted variables are loaded in
m_persisted_dynamic_variables, but that's intentional.
After the first call to set_persisted_options(false), all plugin variables
that failed to be assigned to initially loaded plugins will be added to
m_persisted_dynamic_plugin_variables as well, so things will work fine
for subsequent set_persisted_options(true) calls done when installing
plugins with the SQL command.
Solution:
--------
Leave code as is, just document that initial call to
set_persisted_options(false) is required to initialize plugin specific list.
Approved by: Bharathy Satish <bharathy.x.satish@oracle.com>
Approved by: Georgi Kodinov <georgi.kodinov@oracle.com>
RB: 27742
Change-Id: I339005c79d2f270733bba451c5e740e012e3e78e1 parent eba125b commit 3695eed
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
924 | | - | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
925 | 928 | | |
926 | 929 | | |
927 | 930 | | |
| |||
0 commit comments