MCPcopy Create free account
hub / github.com/ByConity/ByConity / setSettingWithLock

Method setSettingWithLock

src/Interpreters/Context.cpp:2105–2116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2103}
2104
2105void 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
2118void Context::setSettingWithLock(const StringRef & name, const Field & value, const std::unique_lock<SharedMutex> & lock)
2119{

Callers

nothing calls this directly

Calls 2

toViewMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected