Repository navigation
Commit 7082d16
committed
Resolve setting-name aliases in tryGetLiveValueAsString
The changeable-settings map is keyed by canonical names, but
`getServerSetting` accepts path-style aliases such as
`query_cache.max_size_in_bytes` (alias for `query_cache_max_size_in_bytes`).
Without resolving the alias first, the lookup missed the live value and
the function silently fell back to the stale config value.
Run `name` through `ServerSettingsTraits::resolveName` before consulting
the map, and add a test that exercises a path alias.1 parent a15d12f commit 7082d16
3 files changed
Lines changed: 12 additions & 1 deletion
File tree
- src/Core
- tests/queries/0_stateless
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1925 | 1925 | | |
1926 | 1926 | | |
1927 | 1927 | | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1928 | 1932 | | |
1929 | | - | |
| 1933 | + | |
1930 | 1934 | | |
1931 | 1935 | | |
1932 | 1936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments