MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / updateFromSettings

Method updateFromSettings

src/IO/S3AuthSettings.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void S3AuthSettings::updateFromSettings(const DB::Settings & settings, bool if_changed)
136{
137 for (auto & field : impl->allMutable())
138 {
139 const auto setting_name = "s3_" + field.getName();
140 if (settings.has(setting_name) && (!if_changed || settings.isChanged(setting_name)))
141 {
142 field.setValue(settings.get(setting_name));
143 }
144 }
145}
146
147bool S3AuthSettings::hasUpdates(const S3AuthSettings & other) const
148{

Callers 5

fromASTMethod · 0.45
getWriteBufferMethod · 0.45
writeObjectMethod · 0.45
BackupReaderS3Method · 0.45
BackupWriterS3Method · 0.45

Calls 6

allMutableMethod · 0.80
getNameMethod · 0.45
hasMethod · 0.45
isChangedMethod · 0.45
setValueMethod · 0.45
getMethod · 0.45

Tested by 1

getWriteBufferMethod · 0.36