diff options
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp index cc8bc2c8b96..904e495e0f2 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp @@ -98,31 +98,8 @@ DocumentDBConfig::DocumentDBConfig( { } -DocumentDBConfig:: -DocumentDBConfig(const DocumentDBConfig &cfg) - : _configId(cfg._configId), - _docTypeName(cfg._docTypeName), - _generation(cfg._generation), - _rankProfiles(cfg._rankProfiles), - _rankingConstants(cfg._rankingConstants), - _rankingExpressions(cfg._rankingExpressions), - _onnxModels(cfg._onnxModels), - _indexschema(cfg._indexschema), - _attributes(cfg._attributes), - _summary(cfg._summary), - _juniperrc(cfg._juniperrc), - _documenttypes(cfg._documenttypes), - _repo(cfg._repo), - _importedFields(cfg._importedFields), - _tuneFileDocumentDB(cfg._tuneFileDocumentDB), - _schema(cfg._schema), - _maintenance(cfg._maintenance), - _storeConfig(cfg._storeConfig), - _threading_service_config(cfg._threading_service_config), - _alloc_config(cfg._alloc_config), - _orig(cfg._orig), - _delayedAttributeAspects(false) -{ } +DocumentDBConfig::DocumentDBConfig(const DocumentDBConfig &cfg) = default; + DocumentDBConfig::~DocumentDBConfig() = default; @@ -348,6 +325,13 @@ DocumentDBConfig::makeDelayedAttributeAspectConfig(const SP &newCfg, const Docum return result; } +DocumentDBConfig::SP +DocumentDBConfig::make_copy() const { + auto copy = std::make_shared<DocumentDBConfig>(*this); + copy->_delayedAttributeAspects = false; + return copy; +} + const document::DocumentType * DocumentDBConfig::getDocumentType() const { |