MCPcopy Create free account
hub / github.com/apple/foundationdb / fromKeyValues

Method fromKeyValues

fdbclient/DatabaseConfiguration.cpp:811–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811void DatabaseConfiguration::fromKeyValues(Standalone<VectorRef<KeyValueRef>> rawConfig) {
812 resetInternal();
813 this->rawConfiguration = rawConfig;
814 for (auto c = rawConfiguration.begin(); c != rawConfiguration.end(); ++c) {
815 setInternal(c->key, c->value);
816 }
817 setDefaultReplicationPolicy();
818}
819
820bool DatabaseConfiguration::isOverridden(std::string key) const {
821 key = configKeysPrefix.toString() + std::move(key);

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected