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/documentdb | |
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/documentdb')
-rw-r--r-- | searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp index c2d3da1b4f6..f1d6a384e9c 100644 --- a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp +++ b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp @@ -123,22 +123,27 @@ public: }; struct Fixture { - Schema::SP schema; + std::shared_ptr<Schema> basic_schema; + std::shared_ptr<Schema> full_schema; std::shared_ptr<const DocumentTypeRepo> repo; ConfigSP basicCfg; ConfigSP fullCfg; ConfigSP replayCfg; ConfigSP nullCfg; Fixture() - : schema(make_shared<Schema>()), + : basic_schema(make_shared<Schema>()), + full_schema(make_shared<Schema>()), repo(make_shared<DocumentTypeRepo>()), basicCfg(), fullCfg(), replayCfg(), nullCfg() { - basicCfg = MyConfigBuilder(4, schema, repo).addAttribute().addSummary(false, false).build(); - fullCfg = MyConfigBuilder(4, schema, repo).addAttribute(). + basic_schema->addAttributeField(Schema::AttributeField("my_attribute", schema::DataType::INT32)); + full_schema->addAttributeField(Schema::AttributeField("my_attribute", schema::DataType::INT32)); + full_schema->addSummaryField(Schema::SummaryField("my_attribute", schema::DataType::INT32)); + basicCfg = MyConfigBuilder(4, basic_schema, repo).addAttribute().addSummary(false, false).build(); + fullCfg = MyConfigBuilder(4, full_schema, repo).addAttribute(). addRankProfile(). addRankingConstant(). addRankingExpression(). |