// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "documentdbconfigscout.h" #include "documentdbconfig.h" #include using vespa::config::search::AttributesConfig; namespace proton { std::shared_ptr DocumentDBConfigScout::scout(const std::shared_ptr &config, const DocumentDBConfig &liveConfig) { AttributesConfigScout acScout(liveConfig.getAttributesConfig()); std::shared_ptr ac(acScout.adjust(config->getAttributesConfig())); if (*ac == config->getAttributesConfig()) return config; // no change return config->newFromAttributesConfig(ac); } } // namespace proton