diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-09-20 23:13:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 23:13:12 +0200 |
commit | b01f2aa1cf4ad37dd0d30ceceef7493da7d7bb1b (patch) | |
tree | 2d254aca4ae047dcf9480cd1bc9bcf8160d0b324 /searchcore/src/tests/proton/proton_configurer | |
parent | dc542b1300ee89d50437151448e9cf25f6b652b2 (diff) | |
parent | 983691d0ec9f3e1f9b719a29d468a8675f62962e (diff) |
Merge pull request #24138 from vespa-engine/toregge/only-save-config-needed-for-replay-of-transaction-logv8.56.20
Only save config needed for replay of transaction log.
Diffstat (limited to 'searchcore/src/tests/proton/proton_configurer')
-rw-r--r-- | searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp index 48ff1dac93a..b9278c41d1d 100644 --- a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp +++ b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp @@ -20,7 +20,6 @@ #include <vespa/searchcore/proton/server/i_proton_disk_layout.h> #include <vespa/searchcore/proton/server/threading_service_config.h> #include <vespa/searchsummary/config/config-juniperrc.h> -#include <vespa/searchcommon/common/schemaconfigurer.h> #include <vespa/vespalib/util/size_literals.h> #include <vespa/vespalib/util/threadstackexecutor.h> #include <vespa/vespalib/test/insertion_operators.h> @@ -42,7 +41,6 @@ using document::DocumentTypeRepo; using search::TuneFileDocumentDB; using std::map; using search::index::Schema; -using search::index::SchemaBuilder; using proton::matching::RankingConstants; using proton::matching::RankingExpressions; using proton::matching::OnnxModels; @@ -58,11 +56,7 @@ struct DBConfigFixture { Schema::SP buildSchema() { - Schema::SP schema(std::make_shared<Schema>()); - SchemaBuilder::build(_attributesBuilder, *schema); - SchemaBuilder::build(_summaryBuilder, *schema); - SchemaBuilder::build(_indexschemaBuilder, *schema); - return schema; + return DocumentDBConfig::build_schema(_attributesBuilder, _summaryBuilder, _indexschemaBuilder); } static RankingConstants::SP buildRankingConstants() |