| 2103 | } |
| 2104 | |
| 2105 | void Context::setSettingWithLock(const StringRef & name, const String & value, const std::unique_lock<SharedMutex> & lock) |
| 2106 | { |
| 2107 | if (name == "profile") |
| 2108 | { |
| 2109 | setCurrentProfileWithLock(value, lock); |
| 2110 | return; |
| 2111 | } |
| 2112 | settings.set(std::string_view{name}, value); |
| 2113 | |
| 2114 | if (ContextAccessParams::dependsOnSettingName(name.toView())) |
| 2115 | calculateAccessRightsWithLock(lock); |
| 2116 | } |
| 2117 | |
| 2118 | void Context::setSettingWithLock(const StringRef & name, const Field & value, const std::unique_lock<SharedMutex> & lock) |
| 2119 | { |